public void cloneTarget(CustomProjectile tobeCloned) { for (int i = 0; i < tobeCloned.componentlist.Count; i++) { componentlist.Add((SpellComponent)tobeCloned.componentlist[i].Clone()); } }
public override ModProjectile Clone() { CustomProjectile newprojectile = new CustomProjectile(); for (int i = 0; i < componentlist.Count; i++) { newprojectile.componentlist.Add((SpellComponent)componentlist[i].Clone()); } return(newprojectile); }