Example #1
0
 protected virtual void OnDestroy()
 {
     CameraHook.RemovePreCullEventListener(new CameraHook.PreCullEvent(this.PreCull));
     if (!this.AutoDestroyUIObject)
     {
         return;
     }
     GameUtility.DestroyGameObject((Component)this.UIObject);
 }
Example #2
0
 private void OnDisable()
 {
     CameraHook.RemovePreCullEventListener(new CameraHook.PreCullEvent(this.PreCull));
 }