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(); }