Beispiel #1
0
 public override void clone(gunit unit)
 {
     tower towern = (tower)unit;
     //Clone the weapon
     t_weapon.clone(towern.t_weapon);
     base.clone(unit);
 }
Beispiel #2
0
 public virtual void clone(gunit unit)
 {
     hp = unit.hp;
     dmg = unit.dmg;
     _push = unit.getPush;
     name = unit.name;
     textureName = unit.textureName;
     texture = unit.texture;
     cloner.clonebody(ref this.body, ref unit.body);
     body.ResetDynamics();
     cloner.clonegeom(ref this.geom, ref unit.geom);
     geom.Tag = this.id;
     playernumber = unit.playernumber;
     geom.CollisionGroup = playernumber;
     interval = unit.interval;
 }
Beispiel #3
0
 public override void clone(gunit unit)
 {
     bullet _bullet = (bullet)unit;
     _shootingspeed = _bullet._shootingspeed;
     base.clone(unit);
 }