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