Exemple #1
0
 //! Actions done when there is interaction with the door.
 /*! If closed, it opens, if opened, it closes. */
 public override void Interact()
 {
     if (isClosed)
     {
         this.Open();
         if (closeOtherDoor != null && !closeOtherDoor.IsClosed())
         {
             closeOtherDoor.Interact();
         }
     }
     else
     {
         this.Close();
     }
 }