Example #1
0
        private void HandleActionTrigger()
        {
            if (!Paused && _readyPopup.AwaitingDismissal)
            {
                BeginPlay();
            }

            if (Paused && !_pauseDialog.Visible && !_controllerDialog.Visible && _tutorialRunner.DisplayingHelp && _tutorialRunner.StepCanBeDismissed)
            {
                Paused = false;
                _tutorialRunner.ClearCurrentStep();
            }
        }
        private void HandleDialogClose(string selectedOption)
        {
            switch (selectedOption)
            {
            case "Continue":
                if (!_tutorialRunner.DisplayingHelp)
                {
                    _paused = false;
                }
                break;

            case "Skip Level":
                HandleLevelSkip();
                break;

            case "Quit":
                NextSceneParameters.Set(TitleScene.First_Dialog_Parameter_Name, "start");
                NextSceneParameters.Set("music-already-running", false);
                NextSceneType = typeof(TitleScene);
                Profile.PauseOnSceneActivation = false;
                Deactivate();
                break;

            case "Add Lives":
                NextSceneParameters.Set("return-to-game", true);
                NextSceneType = typeof(StoreScene);
                Deactivate();
                break;

            case "OK":
                _paused = false;
                _tutorialRunner.ClearCurrentStep();

                break;
            }
        }