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"); }
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; } } }
void OnClick() { VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14 DJ_LevelManager.currentLevel = -2; Application.LoadLevel("mainScreen"); }
void OnClick() { VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14 DJ_LevelManager.nextLevel(); Application.LoadLevel("LoadingScene"); }
void OnClick() { VolumeControl.saveData(); // Volume slider data save. Peter Kong, 6/7/14 StartCoroutine(RepeatScene()); }