WeaponManager.GetCurrentGraphics C# (CSharp) Method

GetCurrentGraphics() public method

public GetCurrentGraphics ( ) : WeaponGraphics,
return WeaponGraphics,
    public WeaponGraphics GetCurrentGraphics()
    {
        return currentGraphics;
    }

Usage Example

    void RpcDoShootEffect()
    {
        //play our particle system
        ParticleSystem pS = weaponManager.GetCurrentGraphics().muzzleFlash;

        if (!pS.isPlaying)
        {
            pS.Play();
        }

        else if (pS.isPlaying)
        {
            pS.Stop();
        }

        else if (pS.isPlaying)
        {
            pS.Stop();
        }

        else if (!pS.isPlaying)
        {
            pS.Play();
        }
    }
All Usage Examples Of WeaponManager::GetCurrentGraphics