예제 #1
0
 private void OnEnable()
 {
     if (null == mgr)
     {
         mgr = GetComponent <ImageEffectManager>();
     }
     mgr.Add(this);
     glboalLchBlurEffect = this;
 }
예제 #2
0
 private void OnDisable()
 {
     if (null == mgr)
     {
         mgr = GetComponent <ImageEffectManager>();
     }
     mgr.Remove(this);
     if (glboalLchBlurEffect == this)
     {
         glboalLchBlurEffect = null;
     }
 }