示例#1
0
        void MusicLoop()
        {
            if (CurrentAction == 1)
            {
                music.AdventureMusic();
            }
            else if (CurrentAction == 2)
            {
                music.BattleMusic();
                CurrentAction = 1;
                MusicLoop();
            }
            else if (CurrentAction == 3)
            {
                music.WinFight();
                CurrentAction = 1;
                MusicLoop();
            }
            else if (CurrentAction == 4)
            {
                music.GameOverMusic();
            }

            MusicLoop();
        }