From 8d1f4d5f96b7a3cee4ae2f3535a31a06cb674055 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Tue, 15 Nov 2022 14:30:08 +0300 Subject: [PATCH] Ground Movement Fix --- Implementations/GroundMovement1D.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)