diff --git a/Implementations/GroundMovement1D.cs b/Implementations/GroundMovement1D.cs index e9a1f39..d635869 100644 --- a/Implementations/GroundMovement1D.cs +++ b/Implementations/GroundMovement1D.cs @@ -16,7 +16,11 @@ namespace Syntriax.Modules.Movement.Implementations rigid = GetComponent(); groundTrigger = GetComponentInChildren(); - groundTrigger.OnTriggered += OnGroundTrigger; + + if (groundTrigger != null) + groundTrigger.OnTriggered += OnGroundTrigger; + else + CanTakeOver = true; } private void OnGroundTrigger(bool isGrounded)