protected override void UnInitializeEx()
        {
            base.UnInitializeEx();
            _partDataDict.Clear();
            if (_skeleton)
            {
                _skeletonProxy.ReleaseInstantiateObject(_skeleton);
            }
            _skeleton = null;
            _skeletonProxy.UnloadProxy();

            foreach (var temp in _partProxyDict)
            {
                var proxy = temp.Value;
                proxy.UnloadProxy();
            }
            _partProxyDict.Clear();

            foreach (var temp in _tempPartProxyDict)
            {
                var proxy = temp.Value;
                proxy.UnloadProxy();
            }
            _tempPartProxyDict.Clear();
        }
 protected override void UnInitializeEx()
 {
     base.UnInitializeEx();
     if (_skeleton)
     {
         _skeletonProxy.ReleaseInstantiateObject(_skeleton);
     }
     _skeleton = null;
     _skeletonProxy.UnloadProxy();
 }
Esempio n. 3
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;
 }