Ejemplo n.º 1
0
 protected virtual void OnDestroy()
 {
     if (mMBHotfixObj == null)
     {
         return;
     }
     mMBHotfixObj.OnDestroy();
     mObjects.Clear();
     mBaseDatas.Clear();
     mMBHotfixObj = null;
 }
Ejemplo n.º 2
0
        private void InitHotfixMB()
        {
            if (mMBHotfixObj == null)
            {
                mMBHotfixObj = HotfixApp.Instance.Instantiate <HotfixMB>(mHotfixName);
            }

            if (mMBHotfixObj != null)
            {
                mMBHotfixObj.SetHotfixName(mHotfixName);
                mMBHotfixObj.Initialize(this.mObjects, this.ToBaseDataObjects(mBaseDatas));
                mMBHotfixObj.Awake();
            }
        }
Ejemplo n.º 3
0
        public void InitHotfixMB()
        {
            if (mMBHotfixObj == null && !string.IsNullOrEmpty(mHotfixName))
            {
                mMBHotfixObj = HotfixApp.Instance.Instantiate <HotfixMB>(mHotfixName);
                mMBHotfixObj.SetHotfix(mHotfixName, this.gameObject);

                if (this.mObjects == null)
                {
                    this.mObjects = new List <UnityObject>();
                }
                mMBHotfixObj.Initialize(this.mObjects, this.ToBaseDataObjects(mBaseDatas));
            }
        }
Ejemplo n.º 4
0
        protected virtual void OnDestroy()
        {
            if (mMBHotfixObj != null)
            {
                mMBHotfixObj.OnDestroy();
            }

            if (mObjects != null)
            {
                mObjects.Clear();
            }

            if (mBaseDatas != null)
            {
                mBaseDatas.Clear();
            }

            mMBHotfixObj = null;
            mObjects     = null;
            mBaseDatas   = null;
        }