Example #1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            //smart filtering system
            bodyTrackingStatus = new bool[] { false, false, false, false, false, false };

            activeMusic = e.Parameter as Music;
            switch (activeMusic.selectedMusicMode)
            {
            case Music.MusicMode.EasyChallenge:
            case Music.MusicMode.NormalChallenge:
            case Music.MusicMode.HardChallenge:
                selectedGameMode = MusicSelect.GameMode.Challenge;
                break;

            case Music.MusicMode.EasyMultiplayer:
            case Music.MusicMode.NormalMultiplayer:
            case Music.MusicMode.HardMultiplayer:
                selectedGameMode = MusicSelect.GameMode.Multiplayer;
                break;

            case Music.MusicMode.Exercise:
                selectedGameMode = MusicSelect.GameMode.Exercise;
                break;
            }

            //game reset (harus dipanggil sesudah ACTIVE MUSIC di assign)
            GameInit();
        }
Example #2
0
 private void NavigateToMusicSelect(MusicSelect.GameMode gameMode)
 {
     Frame.Navigate(typeof(MusicSelect), gameMode);
 }