Ejemplo n.º 1
0
 public virtual void Setup(Weapon weapon, float damage, HitDamageAction hitDamage, HitAnyAction hitAny)
 {
     this.weapon       = weapon;
     this.damage       = damage;
     this.OnHitDamage += hitDamage;
     this.OnHitAny    += hitAny;
 }
Ejemplo n.º 2
0
 public override void Setup(Weapon weapon, float damage, HitDamageAction hitDamage, HitAnyAction hitAny)
 {
     base.Setup(weapon, damage, hitDamage, hitAny);
     for (int i = 0; i < guns.Length; i++)
     {
         guns[i].Setup(weapon, damage, hitDamage, hitAny);
     }
 }