Ejemplo n.º 1
0
 public void Uninit()
 {
     _destroyHandler?.Invoke(this);
     if (IsLoadFinish)
     {
         proxy.ReleaseInstantiateObject <GameObject>(gameObject);
     }
     proxy.UnloadProxy();
     Trans              = null;
     Entity             = null;
     ResPath            = string.Empty;
     _loadFinishHandler = null;
     _destroyHandler    = null;
 }
Ejemplo n.º 2
0
 public void Uninit()
 {
     if (_destroyHandler != null)
     {
         _destroyHandler(this);
     }
     if (IsLoadFinish)
     {
         proxy.DestroyUnityObject <GameObject>(gameObject);
     }
     proxy.UnloadProxy();
     Trans              = null;
     _entity            = null;
     _resPath           = string.Empty;
     _loadFinishHandler = null;
     _destroyHandler    = null;
 }
Ejemplo n.º 3
0
 public void AddDestroyHandler(GameObjectExDestroyHandler handler)
 {
     _destroyHandler += handler;
 }