예제 #1
0
파일: Weapon.cs 프로젝트: dvd906/BscThesis
 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;
 }
예제 #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;
 }