예제 #1
0
        public void EnterState()
        {
            timer = 2;

            switch (ReadingGameConfiguration.Instance.CurrentGameType)
            {
            case ReadingGameConfiguration.GameType.FollowReading:
            case ReadingGameConfiguration.GameType.ReadAndListen:
                game.Context.GetAudioManager().PlayMusic(Music.Theme8);
                break;

            case ReadingGameConfiguration.GameType.FollowSong:
                game.Context.GetAudioManager().StopMusic();
                break;

            case ReadingGameConfiguration.GameType.SimonSong:
                game.Context.GetAudioManager().StopMusic();
                // We'll loop the intro instead!
                var song = game.CurrentSongBPM.intro;
                game.StartLoopingSong(song);
                timer = song.length;
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }