//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>(); } } }
public float GetInaccuracyAngle(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).inaccuracyAngle); }
public float GetDotDamage(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).dotDamage); }
public float GetSplashDamageRadius(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).splashDamageRadius); }
public float GetFireRate(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).fireRate); }
public float GetEnemyKnockback(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).enemyKnockback); }
public float GetRange(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).range); }
public float GetRecoilSpeed(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).recoilSpeed); }
public void ChangeStance(WeaponsManager.Weapons weapon) { GetWeapon(weapon.ToString()).isStanced = !GetWeapon(weapon.ToString()).isStanced; }
public WeaponMod GetEquippedMod(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).equippedMod); }
public float GetReloadTimeElapsed(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).reloadTimeElapsed); }
public void StartReloadSystem(WeaponsManager.Weapons weapon) { StartCoroutine(GetWeapon(weapon.ToString()).ReloadSystem()); }
public bool IsReloading(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).reloading); }
public GameObject GetProjectile(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).projectile); }
public AmmunitionManager.AmmoType GetAmmoType(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).ammunition); }
public float GetAmmunitionConso(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).ammunitionConsoByShot); }
public float GetAmmunitionGain(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).ammunitionGainByHit); }
public bool IsStanced(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).isStanced); }
public int GetProjectileByShoot(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).projectileByShoot); }
//All method used to get statistics of the specified weapon #region GET_METHOD public float GetTimeBeforeFirstShoot(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).timeBeforeFirstShoot); }
public float GetProjectileSpeed(WeaponsManager.Weapons weapon) { return(GetWeapon(weapon.ToString()).projectileSpeed); }
//Define GET_METHODS for mod statistics #region GET_METHODS public virtual float GetTimeBeforeFirstShoot() { return(WeaponsStats.instance.GetWeapon(attachedWeapon.ToString()).timeBeforeFirstShoot); }