void OnTriggerEnter2D(Collider2D other) { if (ignoreTrigger) { return; } if (other.name == "Character") { door.DoorTriggers(); } }