Пример #1
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         isDoor = false;
         enterDoorText.gameObject.SetActive(false);
         Control.SwitchToAction();
     }
 }
Пример #2
0
 public void OnTriggerExit2D(Collider2D collision)
 {
     if (collision.gameObject.name.Equals("Jack"))
     {
         pickUpText.gameObject.SetActive(false);
         Control.SwitchToAction();
         pickUpAllowed = false;
     }
 }