Esempio n. 1
0
    /// <summary>
    /// Weapon switch callback. Switches the player's weapon.
    /// </summary>
    private void SwitchPrimaryWeapon()
    {
        if (_isPaused || !_isAlive)
        {
            return;
        }

        StopUsingPrimaryWeapon();
        _currentWeapon = _weaponsManager.GetNextWeapon();
        _pointerToggler.Switch3DPointerColor(_currentWeapon.GetProjectileType());
    }