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"); } }
void OnDisable() { if (s_instance == this) s_instance = null; }