Esempio n. 1
0
    public ToySaver getSnapshot()
    {
        float ammo = (firearm != null)? firearm.Ammo() : -1;

#if UNITY_EDITOR
        return(new ToySaver(string.Copy(my_name), ammo, rune.getSnapshot(), toy_type, building.current_construction_time, my_tower_stats.DeepClone()));
#else
        //toooo sllooowwww
        return(new ToySaver(string.Copy(my_name), ammo, rune.getSnapshot(), toy_type, building.current_construction_time, new tower_stats()));
#endif
    }