Example #1
0
 //Moves button into "down" state
 public void PressButton()
 {
     if (isUp && !isMoving)
     {
         StartCoroutine(MoveButton());
         if (!hasBeenTriggered)
         {
             doorToOpen.DecrementNumConnectedButtons();
         }
         hasBeenTriggered = true;
         isUp             = false;
     }
     StartTimer();
 }