public static void PlayLevel()
    {
        VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14

        DJ_LevelManager.currentLevel = level;
        //Application.LoadLevel("level" + DJ_LevelManager.currentLevel);
        //Debug.Log("Starting to load: level" + DJ_LevelManager.currentLevel);
        //DJ_LoadingScreen.LoadLevel("level" + DJ_LevelManager.currentLevel);
        //Debug.Log ("Im in here: " + level);
        Application.LoadLevel("LoadingScene");
    }
예제 #2
0
 void OnClick()
 {
     if (!DJ_Input.inScoreScreen())
     {
         isPausedScript pause = pauseContainer.GetComponent <isPausedScript>();
         if (pause.isPaused)
         { // Open Pause UI
             TweenPosition.Begin(pauseContainer, speed, collapsedPosition);
             pause.isPaused = false;
             VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14
         }
         else
         { // Close Pause UI
             TweenPosition.Begin(pauseContainer, speed, expandedPosition);
             pause.isPaused = true;
         }
     }
 }
예제 #3
0
 void OnClick()
 {
     VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14
     DJ_LevelManager.currentLevel = -2;
     Application.LoadLevel("mainScreen");
 }
예제 #4
0
 void OnClick()
 {
     VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14
     DJ_LevelManager.nextLevel();
     Application.LoadLevel("LoadingScene");
 }
예제 #5
0
 void OnClick()
 {
     VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14
     StartCoroutine(RepeatScene());
 }