コード例 #1
0
 public override void ToggleCameraComponent(bool flag)
 {
     m_radialBlurComp = MyCamera.gameObject.GetComponent <XftRadialBlurTexAdd> ();
     if (m_radialBlurComp == null)
     {
         m_radialBlurComp = MyCamera.gameObject.AddComponent <XftRadialBlurTexAdd> ();
     }
     m_radialBlurComp.Init(m_owner.RadialBlurTexAddShader);
     m_radialBlurComp.enabled = flag;
 }
コード例 #2
0
 protected void ToggleCameraComponent(bool flag)
 {
     m_radialBlurComp = m_camera.gameObject.GetComponent <XftRadialBlurTexAdd> ();
     if (m_radialBlurComp == null)
     {
         m_radialBlurComp = m_camera.gameObject.AddComponent <XftRadialBlurTexAdd> ();
     }
     //assign the shader here.
     m_radialBlurComp.Init(m_owner.RadialBlurTexAddShader);
     m_radialBlurComp.enabled = flag;
 }