Example #1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         if (manager != null)
         {
             manager.ExitedEvent();
         }
         else
         {
             manager = transform.parent.GetComponent <GameEventManager>();
         }
     }
 }