Пример #1
0
    public void screenTransition(int toScreen)
    {
        if (toScreen == 1)
        {
            currentScreen = 1;

            CM.SharkCameraToggle(false);
            CM.ARCameraToggle(false);

            anim = ActiveAnimation.Play(screenTween1, "", Direction.Forward, EnableCondition.DoNothing, DisableCondition.DoNotDisable);
            anim = ActiveAnimation.Play(screenTween2, "", Direction.Forward, EnableCondition.DoNothing, DisableCondition.DoNotDisable);
        }

        else if (toScreen == 0)
        {
            currentScreen = 0;

            CM.SharkCameraToggle(false);
            CM.ARCameraToggle(false);

            anim = ActiveAnimation.Play(screenTween1, "", Direction.Reverse, EnableCondition.DoNothing, DisableCondition.DoNotDisable);
            anim = ActiveAnimation.Play(screenTween2, "", Direction.Reverse, EnableCondition.DoNothing, DisableCondition.DoNotDisable);
        }

        SelectCharacterModel();
    }