Beispiel #1
0
 private void OnDestroy()
 {
     if (_feature != null)
     {
         _feature.Destroy();
     }
     EmojiTools.RemoveUnityMemory(this);
 }
        protected override void OnDestroy()
        {
            base.OnDestroy();

            StopAllCoroutines();


            EmojiTools.RemoveUnityMemory(this);
        }
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (_Render != null)
            {
                _Render.Release(this);
            }
            _Render = null;
            EmojiTools.RemoveUnityMemory(this);
        }
Beispiel #4
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            if (_renderTagList != null)
            {
                ListPool <IFillData> .Release(_renderTagList);

                _renderTagList = null;
            }

            if (Manager)
            {
                Manager.UnRegister(this);
            }

            EmojiTools.RemoveUnityMemory(this);
        }
        private void OnDestroy()
        {
#if UNITY_EDITOR
            if (_lostAssets != null)
            {
                for (int i = 0; i < _lostAssets.Count; ++i)
                {
                    string asset = _lostAssets[i];
                    Debug.LogError(string.Format("not prepred atlasAsset named :{0}", asset));
                }
            }
#endif
            if (_render != null)
            {
                _render.Dispose();
            }

            _render = null;
            EmojiTools.RemoveUnityMemory(this);
        }