Пример #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.gameObject.layer == playerLayer)
     {
         activated = false;
         door.CloseByPresentAction();
         ui.ShowDoorClosed();
     }
 }
Пример #2
0
 void CloseDoor()
 {
     door.CloseByPresentAction();
 }