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