public void UnInitialize()
 {
     _animationClip   = null;
     _stateStartTicks = 0;
     if (_animationClipProxy != null)
     {
         _animationClipProxy.UnloadProxy();
     }
 }
        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();
        }
Example #3
0
 protected override void UnInitializeEx()
 {
     base.UnInitializeEx();
     if (_skeleton)
     {
         _skeletonProxy.ReleaseInstantiateObject(_skeleton);
     }
     _skeleton = null;
     _skeletonProxy.UnloadProxy();
 }
 public void UnInitialize()
 {
     Enable = false;
     for (var i = 0; i < StateList.Count; i++)
     {
         var state = StateList[i];
         state.UnInitialize();
     }
     CurrentState = null;
     Entity       = null;
     if (_runtimeAnimatorProxy != null)
     {
         _runtimeAnimatorProxy.UnloadProxy();
     }
 }