private void OnTriggerExit(Collider other)
 {
     if (!other.gameObject.CompareTag("Player") && !other.isTrigger)
     {
         currentColliders.Remove(other);
         if (currentColliders.Count == 0)
         {
             LeftGround?.Invoke();
             player.ChangeState((int)PlayerState.InAir);
         }
     }
 }
Beispiel #2
0
 private void OnTriggerExit(Collider other)
 {
     LeftGround?.Invoke(other);
 }