Ejemplo n.º 1
0
 void OnEnable()
 {
     ResetDSRenderer();
     s_instance = this;
     if (m_render == null)
     {
         m_render = Render;
         GetDSRenderer().AddCallbackPostEffect(m_render, 5000);
         m_i_shockwave_params = Shader.PropertyToID("shockwave_params");
     }
 }
Ejemplo n.º 2
0
 void OnDisable()
 {
     if (s_instance == this) s_instance = null;
 }