private void OnCollisionEnter2D(Collision2D other) { if (other.gameObject.tag.Equals("Player")) { SFX.Play(); MyLoading.Reset(ThisLevel); } }
void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag.Equals("Player")) { Persistence.levelstatus [levelindex - 1] = 1; Persistence.SaveData(); MyLoading.Loading("LevelSelect"); } }
public void LoadOtherScene(string levelToLoad, bool loadNextLevelThruMyLoading) { if (loadNextLevelThruMyLoading) { MyLoading.LoadLevel(levelToLoad); } else { SceneManager.LoadScene(levelToLoad); } }
private void LoadOtherScene() { if (LoadNextLevelThruMyLoading) { MyLoading.LoadLevel(LevelToLoad); } else { SceneManager.LoadScene(LevelToLoad); } }
private IEnumerator WaitAndLoadOtherSceneIE(string levelToLoad, float secondsToWait, bool loadNextLevelThruMyLoading) { yield return(new WaitForSeconds(secondsToWait)); if (loadNextLevelThruMyLoading) { MyLoading.LoadLevel(levelToLoad); } else { SceneManager.LoadScene(levelToLoad); } }
public void ResetData() { Persistence.levelstatus = new int[] { 1, 0, 0, 0, 0, 0, 0, 0 }; PlayerPrefsX.SetIntArray("LevelStatus", Persistence.levelstatus); MyLoading.Loading("LevelSelect"); }
public void MenuBack() { MyLoading.Loading("Menu"); }
public void Play() { MyLoading.Loading("LevelSelect"); }
public void RestartLvl(string nomefaze) { Time.timeScale = normalTime; MyLoading.Loading(nomefaze); }
public void BackMenu() { Time.timeScale = normalTime; MyLoading.Loading("LevelSelect"); }
void Carrega() { MyLoading.Reset(ThisLevel); }
void ExitIntro() { MyLoading.Loading("Menu"); }
public void Loadonclick(string level) { MyLoading.Loading(level); }
public void ButtonBackToMenu() { MyLoading.LoadLevel("Menu"); }
public void ButtonOptions() { MyLoading.LoadLevel("Options"); }
public void ButtonPlay() { MyLoading.LoadLevel("03_Level"); }