示例#1
0
        private static Behaviour ShowDialog(string content)
        {
            MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen");

            return((activator, self) => {
                mainPlayScreen.timer.Stop();
                mainPlayScreen.msgbox.Show(content.ProcessAnnotation());
                mainPlayScreen.gameStates.Push(GameState.ShowDialog);
            });
        }
示例#2
0
        private static Behaviour ExitGame()
        {
            MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen");

            return((a, s) => {
                mainPlayScreen.isExit = true;
                mainPlayScreen.CurrentGameState = GameState.Exit;
                mainPlayScreen.msgbox.Show("Exitting game.", "OK");
            });
        }
示例#3
0
        private static Behaviour Win(string nextlvl = null)
        {
            MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen");

            return((activator, self) => {
                mainPlayScreen.isWin = true;

                if (!string.IsNullOrEmpty(nextlvl))
                {
                    mainPlayScreen.isBehaviourChangeMap = true;
                    mainPlayScreen.MapName = nextlvl;
                }
            });
        }
示例#4
0
        private static Behaviour ShowDialog()
        {
            MainPlayScreen mainPlayScreen = (MainPlayScreen)SCREEN_MANAGER.GetScreen("MainPlayScreen");

            return((activator, self) => {
                if (self.Memory.Count == 0)
                {
                    return;
                }

                mainPlayScreen.timer.Stop();
                var content = self.Memory.Pop();
                mainPlayScreen.msgbox.Show(content.ProcessAnnotation());
                mainPlayScreen.gameStates.Push(GameState.ShowDialog);
            });
        }