Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void OnEnable()
 {
     instance = this;
     set_level_filds(Game_Manager.instance.selected_world);
     load_world(cur_wrld);
 }