示例#1
0
 public void CloseDoors()
 {
     if (currentState == State.Depressurizing)
     {
         airTanks.PressurizeBay();
     }
     else if (currentState != State.Warning)
     {
         startDoorMove = true;
     }
     else if (currentState == State.Warning)
     {
         speakers.StopWarning(WarningSource.DOOR);
     }
     currentState = State.Closing;
     CheckState();
 }