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