vp_FPSShooter.RefreshSettings C# (CSharp) Method

RefreshSettings() public method

public RefreshSettings ( ) : void
return void
    public void RefreshSettings()
    {
        // update muzzle flash position, scale and fadespeed from preset
        if (m_MuzzleFlash != null)
        {
            m_MuzzleFlash.transform.localPosition = MuzzleFlashPosition;
            m_MuzzleFlash.transform.localScale = MuzzleFlashScale;
            m_MuzzleFlashComponent = (vp_MuzzleFlash)m_MuzzleFlash.GetComponent("vp_MuzzleFlash");
            if (m_MuzzleFlashComponent != null)
                m_MuzzleFlashComponent.FadeSpeed = MuzzleFlashFadeSpeed;
        }
    }