void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag.Equals("Player")) { Persistence.levelstatus [levelindex - 1] = 1; Persistence.SaveData(); MyLoading.Loading("LevelSelect"); } }
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 ExitIntro() { MyLoading.Loading("Menu"); }
public void Loadonclick(string level) { MyLoading.Loading(level); }