Beispiel #1
0
 private void Stat_Menu_Select()
 {
     switch (Stat_Curent)
     {
     case GameStat.MenuMain:
         CheckData();
         Menu_Select = new MenuSelect(this);
         Menu_Main   = null;
         break;
     }
     Stat_Curent = GameStat.MenuSelect;
 }
Beispiel #2
0
        private void Stat_Menu_Main()
        {
            switch (Stat_Curent)
            {
            case GameStat.MenuSelect:
                Menu_Main   = new MenuMain(this);
                Menu_Select = null;
                break;

            case GameStat.MenuSettings:
                Menu_Main.Reset();
                break;

            case GameStat.Help:
                Menu_Main.Reset();
                break;

            case GameStat.Win:
                Menu_Main = new MenuMain(this);
                Game_Play = null;
                break;

            case GameStat.Lose:
                Menu_Main = new MenuMain(this);
                Game_Play = null;
                break;

            case GameStat.Pause:
                Menu_Main = new MenuMain(this);
                if (Game_Play.Sound_Fan_Inst.State == SoundState.Playing)
                {
                    Game_Play.Sound_Fan_Inst.Stop();
                }
                Game_Play = null;
                break;

            case GameStat.Null:
                Menu_Main = new MenuMain(this);
                break;
            }
            Stat_Curent = GameStat.MenuMain;
        }