Ground Movement Fix
This commit is contained in:
parent
062fe203ad
commit
8d1f4d5f96
|
@ -16,7 +16,11 @@ namespace Syntriax.Modules.Movement.Implementations
|
|||
|
||||
rigid = GetComponent<Rigidbody2D>();
|
||||
groundTrigger = GetComponentInChildren<IGroundTrigger>();
|
||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
||||
|
||||
if (groundTrigger != null)
|
||||
groundTrigger.OnTriggered += OnGroundTrigger;
|
||||
else
|
||||
CanTakeOver = true;
|
||||
}
|
||||
|
||||
private void OnGroundTrigger(bool isGrounded)
|
||||
|
|
Loading…
Reference in New Issue