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); } } }
private void OnTriggerExit(Collider other) { LeftGround?.Invoke(other); }