private void OnTriggerExit(Collider other) { if (other.gameObject.layer == playerLayer) { activated = false; door.CloseByPresentAction(); ui.ShowDoorClosed(); } }
void CloseDoor() { door.CloseByPresentAction(); }
private void OnTriggerExit(Collider other) { if (other.gameObject.layer == playerLayer) { activated = false; door.CloseByPresentAction(); ui.ShowDoorClosed(); } }
void CloseDoor() { door.CloseByPresentAction(); }