Exemplo n.º 1
0
 public override void ToggleCameraComponent(bool flag)
 {
     m_radialBlurComp = MyCamera.gameObject.GetComponent <XftRadialBlur>();
     if (m_radialBlurComp == null)
     {
         m_radialBlurComp = MyCamera.gameObject.AddComponent <XftRadialBlur>();
     }
     m_radialBlurComp.Init(m_owner.RadialBlurShader);
     m_radialBlurComp.enabled = flag;
 }
 protected void ToggleCameraComponent(bool flag)
 {
     m_radialBlurComp = m_camera.gameObject.GetComponent <XftRadialBlur>();
     if (m_radialBlurComp == null)
     {
         m_radialBlurComp = m_camera.gameObject.AddComponent <XftRadialBlur>();
     }
     //assign the shader here.
     m_radialBlurComp.Init(m_owner.RadialBlurShader);
     m_radialBlurComp.enabled = flag;
 }