/* * public string getSnapshotFile(bool start_level) * { * if (start_level) return start_level_snapshot_file; * else return snapshot_file; * } */ public bool setCurrentLevel(int c) { if (c > level_list.getMaxLvl()) { Debug.Log("TRYING TO SET CURRENT LEVEL TO " + c + " TO BE ABOVE ALLOWED MAXIMUM " + level_list.getMaxLvl() + "\n"); return(false); } if (c < 0) { return(true); } current_lvl = c; level_list.SetDifficulty(); //level_list.levels[current_lvl].difficulty = _transformSliderDifficulty();//_getlevel_list.difficulty_slider.value; // Debug.Log("Set level " + current_lvl + " difficulty to " + level_list.levels[current_lvl].difficulty + "\n"); return(true); }