Beispiel #1
0
 public Weapon(ref IWeaponAnimation weaponAnimation, ref IWeaponInfo weaponInfo,
               ref IWeaponPlace weaponPlace, Transform weaponTransform)
 {
     this.weaponTransform = weaponTransform;
     this.weaponAnimation = weaponAnimation;
     this.canMeleeAttack  = false;
     this.weaponInfo      = weaponInfo;
     this.weaponPlace     = weaponPlace;
 }
Beispiel #2
0
 public RangedWeapon(ref IWeaponAnimation weaponAnimation, ref IRangedWeaponInfo rangedWeapon,
                     ref IWeaponPlace weaponPlace, Transform weaponTransform)
 {
     this.lastAmmoCount   = rangedWeapon.CurrentAmmoInMagazine;
     this.weaponTransform = weaponTransform;
     this.weaponAnimation = weaponAnimation;
     this.weaponPlace     = weaponPlace;
     this.rangedWeapon    = rangedWeapon;
     this.canShoot        = true;
     this.canUse          = false;
     this.reloadEnabled   = false;
 }