public void loadSnapshot(ToySaver saver) { rune = new Rune(); rune.loadSnapshot(saver.rune_saver); building.loadSnapshot(saver); if (firearm != null) { firearm.loadSnapshot(saver); } if (rune_buttons != null) { rune_buttons.UpdateMe(); } rune.UpdateStats(); #if UNITY_EDITOR my_tower_stats = saver.tower_stats.DeepClone(); #else //ugh awkward my_tower_stats = new tower_stats(); my_tower_stats.island_name = string.Copy(island.transform.parent.name); my_tower_stats.wave_time = Moon.Instance.TIME; my_tower_stats.initSkillStats(runetype); #endif }