private void OnDisable() { if (MazeAlgoritham.instance != null) { PlayerPrefs.SetInt(cur_wrld + "_clmn", MazeAlgoritham.instance.maze_clmn); PlayerPrefs.SetInt(instance.cur_wrld + "_row", MazeAlgoritham.instance.maze_clmn); } instance = null; Destroy(this); }
private void OnEnable() { instance = this; set_level_filds(Game_Manager.instance.selected_world); load_world(cur_wrld); }