void WeaponSwitching() { if (gunSlot.WeaponInHand) { currentWeapon = weaponDataBase.GetCurrentWeapon(); magSize = currentWeapon.magazineSize; magazineSize.text = magSize.ToString(); ProcessAmmoLeft(); } }
void WeaponSwitching() { if (gunSlot.WeaponInHand) { currentWeapon = weaponDataBase.GetCurrentWeapon(); magazineSize = currentWeapon.magazineSize; fireDelay = currentWeapon.fireDelay; weaponRange = currentWeapon.weaponRange; gunDamage = currentWeapon.gunDamage; bulletLeft = currentWeapon.bulletLeft; CurrentGunShotSound = currentWeapon.gunAudio; reloadTime = currentWeapon.reloadTime; muzzleFlashPosition = currentWeapon.muzzleFlashOffset; } }