void OnTriggerExit2D(Collider2D other) { if (other.CompareTag("Player")) { isDoor = false; enterDoorText.gameObject.SetActive(false); Control.SwitchToAction(); } }
public void OnTriggerExit2D(Collider2D collision) { if (collision.gameObject.name.Equals("Jack")) { pickUpText.gameObject.SetActive(false); Control.SwitchToAction(); pickUpAllowed = false; } }