예제 #1
0
 //Method used to instantiate the currendWeapon's mod, if there is one, to get a reference to it
 public void InstantiateMod(WeaponsManager.Weapons weapon)
 {
     if (!GetEquippedMod(weapon))
     {
         if (GetWeapon(weapon.ToString()).objectMod)
         {
             GameObject mod = Instantiate(GetWeapon(weapon.ToString()).objectMod);
             GetWeapon(weapon.ToString()).equippedMod = mod.GetComponent <WeaponMod>();
         }
     }
 }
예제 #2
0
 public float GetInaccuracyAngle(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).inaccuracyAngle);
 }
예제 #3
0
 public float GetDotDamage(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).dotDamage);
 }
예제 #4
0
 public float GetSplashDamageRadius(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).splashDamageRadius);
 }
예제 #5
0
 public float GetFireRate(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).fireRate);
 }
예제 #6
0
 public AmmunitionManager.AmmoType GetAmmoType(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).ammunition);
 }
예제 #7
0
 public float GetRange(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).range);
 }
예제 #8
0
 public float GetRecoilSpeed(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).recoilSpeed);
 }
예제 #9
0
 public void ChangeStance(WeaponsManager.Weapons weapon)
 {
     GetWeapon(weapon.ToString()).isStanced = !GetWeapon(weapon.ToString()).isStanced;
 }
예제 #10
0
 public WeaponMod GetEquippedMod(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).equippedMod);
 }
예제 #11
0
 public float GetReloadTimeElapsed(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).reloadTimeElapsed);
 }
예제 #12
0
 public void StartReloadSystem(WeaponsManager.Weapons weapon)
 {
     StartCoroutine(GetWeapon(weapon.ToString()).ReloadSystem());
 }
예제 #13
0
 public bool IsReloading(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).reloading);
 }
예제 #14
0
 public GameObject GetProjectile(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).projectile);
 }
예제 #15
0
 public float GetAmmunitionConso(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).ammunitionConsoByShot);
 }
예제 #16
0
 public float GetAmmunitionGain(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).ammunitionGainByHit);
 }
예제 #17
0
 public bool IsStanced(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).isStanced);
 }
예제 #18
0
 public int GetProjectileByShoot(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).projectileByShoot);
 }
예제 #19
0
 //All method used to get statistics of the specified weapon
 #region GET_METHOD
 public float GetTimeBeforeFirstShoot(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).timeBeforeFirstShoot);
 }
예제 #20
0
 public float GetProjectileSpeed(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).projectileSpeed);
 }
예제 #21
0
 public float GetEnemyKnockback(WeaponsManager.Weapons weapon)
 {
     return(GetWeapon(weapon.ToString()).enemyKnockback);
 }