public void netDataDown() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("LoginScript_hotfix", "netDataDown")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.LoginScript_hotfix", "netDataDown", null, null); return; } // 拉取数值表 { NetLoading.getInstance().Show(); NetConfig.reqNetConfig(); PropData.getInstance().reqNet(); ChatData.getInstance().reqNet(); HuDongData.getInstance().reqNet(); SensitiveWordUtil.reqNet(); VipData.reqNet(); } if (OtherData.s_isTest) { ToastScript.createToast("这是测试包"); } else { LogUtil.Log("这是正式包"); } }
// 获取数值表 public void getNetFile() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("GetNetEntityFile_hotfix", "getNetFile")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.GetNetEntityFile_hotfix", "getNetFile", null, null); return; } Invoke("onInvoke", 6); // 恢复初始状态 { for (int i = 0; i < m_fileList.Count; i++) { m_fileList[i].m_fileGetState = FileInfo.FileGetState.FileGetState_NoStart; } } // 拉取数值表 { NetLoading.getInstance().Show(); NetConfig.reqNetConfig(); PropData.getInstance().reqNet(); ChatData.getInstance().reqNet(); HuDongData.getInstance().reqNet(); if (SensitiveWordUtil.WordsDatas == null || SensitiveWordUtil.WordsDatas.Length == 0) { SensitiveWordUtil.reqNet(); } VipData.reqNet(); } }
public void loadChat() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ChatPanelScript_hotfix", "loadChat")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ChatPanelScript_hotfix", "loadChat", null, null); return; } { m_tab_bg.transform.localPosition = new Vector3(-83, 0, 0); CommonUtil.setImageSpriteByAssetBundle(m_button_chat.transform.Find("Image").GetComponent <Image>(), "game.unity3d", "btn_chat_xuanze"); CommonUtil.setImageSpriteByAssetBundle(m_button_biaoqing.transform.Find("Image").GetComponent <Image>(), "game.unity3d", "btn_emogi_weixuanze"); } m_ListViewScript_chat.clear(); GameUtil.showGameObject(m_listView_chat); GameUtil.hideGameObject(m_listView_emoji); for (int i = 0; i < ChatData.getInstance().getChatTextList().Count; i++) { GameObject prefab = Resources.Load("Prefabs/UI/Item/Item_chat_List") as GameObject; GameObject obj = MonoBehaviour.Instantiate(prefab); obj.GetComponent <Item_chat_List_Script>().m_parentScript = this; obj.GetComponent <Item_chat_List_Script>().setChatData(ChatData.getInstance().getChatTextList()[i]); m_ListViewScript_chat.addItem(obj); } m_ListViewScript_chat.addItemEnd(); }