void OnTriggerExit2D(Collider2D other) { if (ignoreTrigger) { return; } if (other.name == "Character") { door.DoorCloses(); } }
void OnTriggerExit2D(Collider2D other) { if (ignoreTrigger) { return; } if (other.tag == "Player") { door.DoorCloses(); } }