// Use this for initialization void Start() { instance = this; if (!PlayerPrefs.HasKey("PreviousPlay")) { for (int i = 0; i < Overworld.instance.m_levels.Length; i++) { if (!Overworld.instance.m_levels[i].unlocked && PlayerPrefs.GetInt("Level" + i) > 0) { StartCoroutine(Overworld.instance.RevealArea(i)); } } } else { for (int i = 0; i < Overworld.instance.m_levels.Length; i++) { PlayerPrefs.SetInt("Level" + i, 0); } } }
public void next() { LevelUnlocker.Next_Level(); SceneManager.LoadScene(sceneload); }