private void OnTriggerExit(Collider other) { if (ExitedTrigger != null) { ExitedTrigger.Invoke(this, new ColliderWithTriggerEventArgs(other.gameObject)); } }
void OnTriggerExit2D(Collider2D other) { ExitedTrigger?.Invoke(other); }