public static void DeepCopySpellAction(SpellAction to, SpellAction from) { to.actInput = from.actInput; to.targetAnim = from.targetAnim; to.throwAnim = from.throwAnim; to.castTime = from.castTime; to.manaCost = from.manaCost; to.staminaCost = from.staminaCost; }
public static void DeepCopySpell(Spell from, Spell to) { to.item_id = from.item_id; //to.itemIcon = from.itemIcon; //to.itemDescription = from.itemDescription; to.spellType = from.spellType; to.spellClass = from.spellClass; to.projectile = from.projectile; to.particle_prefab = from.particle_prefab; to.spellEffect = from.spellEffect; to.actions = new List <SpellAction>(); for (int i = 0; i < from.actions.Count; i++) { SpellAction spellAction = new SpellAction(); DeepCopySpellAction(spellAction, from.actions[i]); to.actions.Add(spellAction); } }