Пример #1
0
 public void cloneTarget(CustomProjectile tobeCloned)
 {
     for (int i = 0; i < tobeCloned.componentlist.Count; i++)
     {
         componentlist.Add((SpellComponent)tobeCloned.componentlist[i].Clone());
     }
 }
Пример #2
0
        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);
        }