Ejemplo n.º 1
0
        private void BeginChapter(string chapterName = null)
        {
            viewManager.GetController <TitleController>().SwitchView <DialogueBoxController>(() =>
            {
                // if (configManager.GetInt(GameFirstShownKey) == 0)
                // {
                //     if (Application.isMobilePlatform)
                //     {
                //         Alert.Show(I18n.__("ingame.first.hint.touch"), () => { Alert.Show(I18n.__("ingame.first.auto")); });
                //     }
                //     else
                //     {
                //         Alert.Show(I18n.__("ingame.first.hint.mouse"), () => { Alert.Show(I18n.__("ingame.first.auto")); });
                //     }
                //     configManager.SetInt(GameFirstShownKey, 1);
                // }

                logController.Clear();

                if (chapterName == null)
                {
                    gameState.GameStart();
                }
                else
                {
                    gameState.GameStart(chapterName);
                }
            });
        }
Ejemplo n.º 2
0
        private void BeginChapter(string chapterName = null)
        {
            viewManager.GetController <TitleController>().SwitchView <DialogueBoxController>(() =>
            {
                logController.Clear();

                if (chapterName == null)
                {
                    gameState.GameStart();
                }
                else
                {
                    gameState.GameStart(chapterName);
                }
            });
        }