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();
            }
        }
Exemple #2
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));
            }
        }