From b0442c2af9ac9e52ba3a9a6b2eb87785eaec8925 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Tue, 15 Nov 2022 14:50:41 +0300 Subject: [PATCH] Warning Added --- MovementController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)