Example #1
0
    void Update()
    {
        if (state != State.Active)
        {
            return;
        }

        if (input.AnyButtonDown())
        {
            state = State.FadingOut;

            if (saveDataManager.TutorialFinished)
            {
                titleLogo.FadeOut();
                cloudSpawner.FadeOut();
                anyKeyToStart.Disappear();
                sounds.Play("Push");

                DOVirtual.DelayedCall(fadeOutToTransition, () =>
                {
                    SceneTransition.StartToChangeScene <DefaultTransitionView>("StageChoiceScene");
                });
            }
            else
            {
                SceneTransition.StartToChangeScene <WhiteOutTransitionView>("Tutorial");
            }
        }
    }