private void OnEnable() { if (null == mgr) { mgr = GetComponent <ImageEffectManager>(); } mgr.Add(this); glboalLchBlurEffect = this; }
private void OnDisable() { if (null == mgr) { mgr = GetComponent <ImageEffectManager>(); } mgr.Remove(this); if (glboalLchBlurEffect == this) { glboalLchBlurEffect = null; } }