Exemple #1
0
    void WeaponSwitching()
    {
        if (gunSlot.WeaponInHand)
        {
            currentWeapon = weaponDataBase.GetCurrentWeapon();

            magSize           = currentWeapon.magazineSize;
            magazineSize.text = magSize.ToString();

            ProcessAmmoLeft();
        }
    }
Exemple #2
0
    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;
        }
    }