diff --git a/MovementController.cs b/MovementController.cs index b6f9156..949717d 100644 --- a/MovementController.cs +++ b/MovementController.cs @@ -74,8 +74,10 @@ namespace Syntriax.Modules.Movement return; } + Debug.LogWarning("No IMovement found with \"CanTakeOver\" value set to true, setting the last IMovement as the ActiveMovement. Please have an IMovement that you can use as a fallback with it's \"CanTakeOver\" value always set to true.", this); + try { ActiveMovement = Movements[Movements.Count - 1]; } - catch (System.Exception) { Debug.LogError("Movement Controller component needs at least one Monobehaviour attached that implements IMovement interface", this); } + catch (System.Exception) { Debug.LogWarning("Movement Controller component needs at least one Monobehaviour attached that implements IMovement interface", this); } } public void Move(float x = 0, float y = 0, float z = 0)