public void load() { pm.load(stageName); if (File.Exists(Application.persistentDataPath + "/" + stageName + name + ".dat")) { BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Open(Application.persistentDataPath + "/" + stageName + name + ".dat", FileMode.Open); SaveData data = bf.Deserialize(file) as SaveData; file.Close(); dm.setDayNum(data.dayNum); wm.loadWeather(data.weather); sm.loadSeason(data.season); ItemManager.money = data.money; //Music am.changeSeason(data.season); am.changeSongs(); //Items ItemManager.waters = data.water; ItemManager.fertilizerCost = data.fertilizer; ItemManager.synth = data.synth; ItemManager.heaters = data.heater; ItemManager.sprays = data.spray; ItemManager.cover = data.cover; ItemManager.music = data.music; if (data.music) { Reusable.setMusic(true); } Cover.purchased = data.cover; } }