Beispiel #1
0
 public void ToggleArms()
 {
     if (animation != null)
     {
         animation.Toggle();
     }
     centrifugeState = CentrifugeStates.MovingArms;
     rotationState   = (int)centrifugeState;
     Events["ToggleArms"].guiName         = animation.Events["Toggle"].guiName;
     Events["ToggleArms"].guiActive       = false;
     Events["ToggleCentrifuge"].guiActive = false;
     updateRotationHelpers(true);
 }
Beispiel #2
0
        protected void playAnimation()
        {
            if (sequenceIndex == -1)
            {
                return;
            }

            SideElevatorSequences sequence = elevatorSequencer[sequenceIndex];

            switch (sequence)
            {
            case SideElevatorSequences.Deploy:
            case SideElevatorSequences.Stow:
                deployStowAnimation.Toggle();
                break;

            case SideElevatorSequences.Lower:
            case SideElevatorSequences.Raise:
                upDownAnimation.ToggleAnimation();
                break;
            }
        }