Exemplo n.º 1
0
 public void UnInitialize()
 {
     _animationClip   = null;
     _stateStartTicks = 0;
     if (_animationClipProxy != null)
     {
         _animationClipProxy.UnloadProxy();
     }
 }
Exemplo n.º 2
0
 private void OnLoadFinish()
 {
     if (_proxy == null)
     {
         _texture = _proxy.GetUnityAsset <Texture>();
         if (_texture == null)
         {
             _proxy.UnloadProxy();
             Deprecated = true;
         }
     }
     if (!Deprecated)
     {
     }
 }
        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();
 }
Exemplo n.º 5
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;
 }
Exemplo n.º 6
0
 public void UnInitialize()
 {
     Enable = false;
     for (int i = 0; i < StateList.Count; i++)
     {
         var state = StateList[i];
         state.UnInitialize();
     }
     CurrentState = null;
     Entity       = null;
     if (_runtimeAnimatorProxy != null)
     {
         _runtimeAnimatorProxy.UnloadProxy();
     }
 }
Exemplo n.º 7
0
        public void OnUninitialize()
        {
            if (_atlasPrefab != null)
            {
                ResourceMgr.singleton.DestroyInstantiateObject(_atlasPrefab);
            }

            _objectRefDict.Clear();
            _spriteDict.Clear();
            _atlasPrefab = null;
            _proxy.UnloadProxy();
            _proxy     = null;
            AtlasPath  = null;
            RefCount   = 0;
            Deprecated = false;
        }