public void onClickJia() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("BuyGoodsPanelScript_hotfix", "onClickJia")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.BuyGoodsPanelScript_hotfix", "onClickJia", null, null); return; } m_button_jian.interactable = true; if ((++m_goods_num) == m_goods_buy_maxNum) { m_button_jia.interactable = false; } m_text_goods_num.text = m_goods_num.ToString(); refreshPrice(); }
public void reqSetTuoGuanState(bool isTuoGuan) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc(m_hotfix_class, "reqSetTuoGuanState")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke(m_hotfix_path, "reqSetTuoGuanState", null, isTuoGuan); return; } NetLoading.getInstance().Show(); JsonData data = new JsonData(); data["tag"] = m_tag; data["uid"] = UserData.uid; data["playAction"] = (int)TLJCommon.Consts.DDZ_PlayAction.PlayAction_SetTuoGuanState; data["isTuoGuan"] = isTuoGuan; PlayServiceSocket.s_instance.sendMessage(data.ToJson()); }
public void onReceive_DeleteMail(string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("MailDetailScript_hotfix", "onReceive_DeleteMail")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.MailDetailScript_hotfix", "onReceive_DeleteMail", null, data); return; } JsonData jd = JsonMapper.ToObject(data); int code = (int)jd["code"]; int email_id = (int)jd["email_id"]; if (code == (int)TLJCommon.Consts.Code.Code_OK) { m_parentScript.deleteMail(email_id); } Destroy(gameObject); }
public void init(string ip, string yuming, int port) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("SocketUtil_hotfix", "init")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.SocketUtil_hotfix", "init", null, ip, yuming, port); return; } try { m_ipAddress = IPAddress.Parse(ip); m_yuming = yuming; m_ipPort = port; } catch (Exception e) { Console.WriteLine(e); } }
public void OnClickLiangzhu(List <PokerInfo> list) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("LiangZhu_hotfix", "OnClickLiangzhu")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.LiangZhu_hotfix", "OnClickLiangzhu", null, list); return; } switch (m_useType) { case UseType.UseType_chaodi: m_parentScript.onClickChaoDi(list); break; case UseType.UseType_liangzhu: m_parentScript.onClickQiangZhu(list); break; } }
public static OutPokerType checkOutPokerType(List <TLJCommon.PokerInfo> outPokerList, int mLevelPokerNum, int masterPokerType) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("CheckOutPoker_hotfix", "checkOutPokerType")) { OutPokerType outPokerType = (OutPokerType)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.CheckOutPoker_hotfix", "checkOutPokerType", null, outPokerList, mLevelPokerNum, masterPokerType); return(outPokerType); } PlayRuleUtil.SetPokerWeight(outPokerList, mLevelPokerNum, (Consts.PokerType)masterPokerType); int count = outPokerList.Count; if (count == 0) { return(OutPokerType.OutPokerType_Error); } // 单牌 else if (count == 1) { return(OutPokerType.OutPokerType_Single); } // 检查是否是对子 else if (count == 2) { if ((outPokerList[0].m_pokerType == outPokerList[1].m_pokerType) && (outPokerList[0].m_num == outPokerList[1].m_num)) { return(OutPokerType.OutPokerType_Double); } } else if (count % 2 == 0 && count >= 4) { if (PlayRuleUtil.IsTuolaji(outPokerList, mLevelPokerNum, masterPokerType)) { // TLJ_PlayService.PlayService.log.Info("出的是拖拉机"); return(OutPokerType.OutPokerType_TuoLaJi); } } // TLJ_PlayService.PlayService.log.Info("有人尝试甩牌"); return(OutPokerType.OutPokerType_ShuaiPai); }
public void setGoodsId(int goods_id) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("MedalDuiHuanQueRenPanelScript_hotfix", "setGoodsId")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.MedalDuiHuanQueRenPanelScript_hotfix", "setGoodsId", null, goods_id); return; } m_medalDuiHuanRewardData = MedalDuiHuanRewardData.getInstance().getMedalDuiHuanRewardDataContentById(goods_id); if (m_medalDuiHuanRewardData != null) { m_text_goods_name.text = m_medalDuiHuanRewardData.name; m_text_goods_num.text = m_goods_num.ToString(); List <string> list_str = new List <string>(); CommonUtil.splitStr(m_medalDuiHuanRewardData.reward_prop, list_str, ':'); int prop_id = int.Parse(list_str[0]); // 道具图标 { CommonUtil.setImageSprite(m_text_goods_icon, GameUtil.getPropIconPath(prop_id)); } // 道具描述 { if ((prop_id != 1) && (prop_id != 2)) { PropInfo propInfo = PropData.getInstance().getPropInfoById(prop_id); if (propInfo != null) { m_text_goods_desc.text = propInfo.m_desc; } } } refreshPrice(); } }
//发送验证码 public void sendVerificationCodeCallBack(string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("BindPhoneScript_hotfix", "sendVerificationCodeCallBack")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.BindPhoneScript_hotfix", "sendVerificationCodeCallBack", null, null); return; } try { JsonData jsonData = JsonMapper.ToObject(data); var result = (string)jsonData["result"]; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(result); XmlNodeList nodeList = xmlDoc.ChildNodes; XmlNode xmlNode = nodeList[1]; XmlNodeList xmlNodeChildNodes = xmlNode.ChildNodes; foreach (XmlNode nodeChild in xmlNodeChildNodes) { LogUtil.Log(nodeChild.Name + ":" + nodeChild.InnerText); string value = nodeChild.InnerText; if (nodeChild.Name.Equals("ResultCode")) { //发送验证码成功 totalTime = time; IsStartTime = true; ButtonSendSms.interactable = false; } else if (nodeChild.Name.Equals("ResultMessageDetails")) { ToastScript.createToast(value); } } } catch (Exception e) { LogUtil.Log(e.Message); } }
public void initPokerPos(List <GameObject> objList) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ShowDiPokerScript_hotfix", "initPokerPos")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ShowDiPokerScript_hotfix", "initPokerPos", null, objList); return; } int jiange = 35; for (int i = 0; i < objList.Count; i++) { int x = CommonUtil.getPosX(objList.Count, jiange, i, 0); objList[i].transform.localPosition = new Vector3(x, 0, 0); objList[i].transform.localScale = new Vector3(0.8f, 0.8f, 0.8f); // 设置最后渲染 objList[i].transform.SetAsLastSibling(); } }
public override void OnRequest() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("OldPlayerBindRequest_hotfix", "OnRequest")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.OldPlayerBindRequest_hotfix", "OnRequest", null, null); return; } JsonData jsonData = new JsonData(); jsonData["tag"] = Tag; jsonData["uid"] = UserData.uid; jsonData["old_uid"] = m_oldUid; jsonData["machine_id"] = PlatformHelper.GetMacId(); jsonData["from"] = OtherData.s_channelName; string requestData = jsonData.ToJson(); LogicEnginerScript.Instance.SendMyMessage(requestData); }
public void addData(string name, int reward_id) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ChangeHeadPanelScript_hotfix", "addData")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ChangeHeadPanelScript_hotfix", "addData", null, name, reward_id); return; } TurntableBroadcastData temp = new TurntableBroadcastData(); temp.m_name = name; temp.m_reward_id = reward_id; m_dataList.Add(temp); if (m_dataList.Count > broadcastMaxNum) { m_dataList.RemoveAt(0); } }
public override void OnRequest() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("UseHuaFeiRequest_hotfix", "OnRequest")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.UseHuaFeiRequest_hotfix", "OnRequest", null, null); return; } JsonData jsonData = new JsonData(); jsonData["tag"] = Tag; jsonData["uid"] = UserData.uid; jsonData["prop_id"] = m_prop_id; jsonData["prop_num"] = m_prop_num; jsonData["phone"] = m_phone; string requestData = jsonData.ToJson(); LogicEnginerScript.Instance.SendMyMessage(requestData); }
public void onClickOK() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("OldPlayerBindPanelScript_hotfix", "onClickOK")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.OldPlayerBindPanelScript_hotfix", "onClickOK", null, null); return; } if (m_inputField_uid.text.CompareTo("") == 0) { ToastScript.createToast("请输入UID"); return; } NetLoading.getInstance().Show(); m_oldPlayerBindRequest.m_oldUid = m_inputField_uid.text; m_oldPlayerBindRequest.OnRequest(); }
public void Timer1() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("BindPhoneScript_hotfix", "Timer1")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.BindPhoneScript_hotfix", "Timer1", null, null); return; } if (nextTime <= Time.time) { textSend.text = string.Format("{0:d2}", totalTime % 60); nextTime = Time.time + 1; //到达一秒后加1 if (totalTime <= 0) { IsStartTime = false; ButtonSendSms.interactable = true; textSend.text = "发送"; } } }
public void onClickHeadItem() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ChangeHeadButtonScript_hotfix", "onClickHeadItem")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ChangeHeadButtonScript_hotfix", "onClickHeadItem", null, null); return; } ChangeHeadPanelScript.s_instance.m_choiceHead = int.Parse(gameObject.transform.name); gameObject.transform.Find("Image").localScale = new Vector3(1, 1, 1); for (int i = 0; i < 18; i++) { if (gameObject.transform.parent.Find((i + 1).ToString()).name != gameObject.transform.name) { gameObject.transform.parent.GetChild(i).Find("Image").localScale = new Vector3(0, 0, 0); } } }
public void SetClickListener(string content, string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ChoiceShareScript_hotfix", "SetClickListener")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ChoiceShareScript_hotfix", "SetClickListener", null, content, data); return; } ShareFriends.onClick.AddListener(() => { PlatformHelper.WXShareFriends("AndroidCallBack", "OnWxShareFriends", content); Destroy(this.gameObject); }); ShareFriendsCirle.onClick.AddListener(() => { PlatformHelper.WXShareFriendsCircle("AndroidCallBack", "OnWxShareFriends", data); Destroy(this.gameObject); }); }
//------------------------------------------------------------- // 请求加入房间 public void reqJoinRoom() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("QueRenBaoMingPanelScript_hotfix", "reqJoinRoom")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.QueRenBaoMingPanelScript_hotfix", "reqJoinRoom", null, null); return; } JsonData data = new JsonData(); data["tag"] = TLJCommon.Consts.Tag_JingJiChang; data["uid"] = UserData.uid; data["playAction"] = (int)TLJCommon.Consts.PlayAction.PlayAction_JoinGame; data["gameroomtype"] = m_PVPGameRoomData.gameroomtype; PlayServiceSocket.s_instance.sendMessage(data.ToJson()); GameData.getInstance().m_tag = TLJCommon.Consts.Tag_JingJiChang; GameData.getInstance().setGameRoomType(m_PVPGameRoomData.gameroomtype); }
// Use this for initialization void Start() { OtherData.s_tuiGuangYouLiPanelScript = this; // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("TuiGuangYouLiPanelScript_hotfix", "Start")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.TuiGuangYouLiPanelScript_hotfix", "Start", null, null); return; } initUI_Image(); m_text_myTuiGuangCode.text = "我的推广码:" + UserData.myTuiGuangCode; m_listview_player = m_obj_tuiGuangList.GetComponent <ListViewScript>(); NetLoading.getInstance().Show(); LogicEnginerScript.Instance.GetComponent <MyTuiGuangYouLiDataRequest>().CallBack = onCallBackMyTuiGuangYouLiData; LogicEnginerScript.Instance.GetComponent <MyTuiGuangYouLiDataRequest>().OnRequest(); }
public void onCallBackMyTuiGuangYouLiData(string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("TuiGuangYouLiPanelScript_hotfix", "onCallBackMyTuiGuangYouLiData")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.TuiGuangYouLiPanelScript_hotfix", "onCallBackMyTuiGuangYouLiData", null, data); return; } NetLoading.getInstance().Close(); MyTuiGuangData.getInstance().initJson(data); if (MyTuiGuangData.getInstance().getMyTuiGuangDataList().Count == 0) { m_curShowTab = TuiGuangYouLiPanelScript.CurShowTab.CurShowTab_bulingjiangli; gameObject.transform.Find("Image_bg/Image_right_bg/wodetuiguang/Text_meiyouyaoqing").localScale = new Vector3(1, 1, 1); } showTab(m_curShowTab); }
// 微信公众号 public static void setPanel_weixingongzhonghao(string url) { // 使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ActivityManager_hotfix", "setPanel_weixingongzhonghao")) { s_panel = (GameObject)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ActivityManager_hotfix", "setPanel_weixingongzhonghao", null, url); return; } GameObject prefabs = Resources.Load("Prefabs/Activity/Activity_image_button") as GameObject; s_panel = GameObject.Instantiate(prefabs); s_panel.GetComponent <Activity_image_button_Script>().m_image.gameObject.AddComponent <DownImageUtil>(); s_panel.GetComponent <Activity_image_button_Script>().m_image.gameObject.GetComponent <DownImageUtil>().startDown(url); Activity_image_button_Script script = s_panel.GetComponent <Activity_image_button_Script>(); script.m_btn1.transform.localScale = new Vector3(0, 0, 0); script.m_btn2.transform.localScale = new Vector3(0, 0, 0); script.m_btn3.transform.localScale = new Vector3(0, 0, 0); }
public override void OnResponse(string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("SignRequest_hotfix", "OnResponse")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.SignRequest_hotfix", "OnResponse", null, data); return; } JsonData jsonData = JsonMapper.ToObject(data); var code = (int)jsonData["code"]; if (code == (int)Consts.Code.Code_OK) { CallBack(true); } else { CallBack(false); } }
/// <summary> /// 得到主牌中的级牌和大小王 /// </summary> /// <param name="masterPoker"></param> /// <param name="mLevelPokerNum"></param> /// <param name="masterPokerType"></param> /// <returns></returns> public static List <PokerInfo> GetJiPaiAndWang(List <PokerInfo> masterPoker, int mLevelPokerNum) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PlayRuleUtil_hotfix", "GetJiPaiAndWang")) { List <PokerInfo> list_temp = (List <PokerInfo>)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PlayRuleUtil_hotfix", "GetJiPaiAndWang", null, masterPoker, mLevelPokerNum); return(list_temp); } List <PokerInfo> pokerInfos = new List <PokerInfo>(); for (int i = 0; i < masterPoker.Count; i++) { PokerInfo pokerInfo = masterPoker[i]; if (pokerInfo.m_num == mLevelPokerNum || pokerInfo.m_pokerType == Consts.PokerType.PokerType_Wang) { pokerInfos.Add(pokerInfo); } } return(pokerInfos); }
/// <summary> /// 得到手牌中的所有主牌 /// </summary> /// <param name="pokerInfos"></param> /// <param name="mLevelPokerNum"></param> /// <param name="masterPokerType"></param> /// <returns></returns> public static List <PokerInfo> GetMasterPoker(List <PokerInfo> pokerInfos, int mLevelPokerNum, int masterPokerType) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PlayRuleUtil_hotfix", "GetMasterPoker")) { List <PokerInfo> list_temp = (List <PokerInfo>)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PlayRuleUtil_hotfix", "GetMasterPoker", null, pokerInfos, mLevelPokerNum, masterPokerType); return(list_temp); } List <PokerInfo> pokers = new List <PokerInfo>(); for (int i = 0; i < pokerInfos.Count; i++) { PokerInfo pokerInfo = pokerInfos[i]; if (IsMasterPoker(pokerInfo, mLevelPokerNum, masterPokerType)) { pokers.Add(pokerInfo); } } return(pokers.OrderBy(a => a.m_weight).ToList()); }
public void onReceive_GetTask(string data) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("TaskPanelScript_hotfix", "onReceive_GetTask")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.TaskPanelScript_hotfix", "onReceive_GetTask", null, data); return; } TaskDataScript.getInstance().initJson(data); //loadTask(); m_hasGetData = true; if (m_isScaleEnd) { loadTask(); NetLoading.getInstance().Close(); } }
public void timer() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("WaitOtherPlayerScript_hotfix", "timer")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.WaitOtherPlayerScript_hotfix", "timer", null, null); return; } switch (m_time_index) { case 1: { m_text.text = m_showText; m_time_index = 2; } break; case 2: { m_text.text = m_showText + "."; m_time_index = 3; } break; case 3: { m_text.text = m_showText + ".."; m_time_index = 4; } break; case 4: { m_text.text = m_showText + "..."; m_time_index = 1; } break; } }
public void onClickBuy2() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("BuyGoodsPanelScript_hotfix", "onClickBuy2")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.BuyGoodsPanelScript_hotfix", "onClickBuy2", null, null); return; } if (m_shopData.money_type2 == 4) { // 判断是否设置过徽章密码 { if (!UserData.isSetSecondPsw) { SetSecondPswPanelScript.create(); ToastScript.createToast("请先设置徽章密码"); return; } } // 校验徽章密码 { if (!OtherData.s_hasCheckSecondPSW) { CheckSecondPSWPanelScript.create(); return; } } } else { LogUtil.Log("不是会长"); } m_money_type = m_shopData.money_type2; buy(m_shopData.money_type2); }
/// <summary> /// 第一家出的拖拉机,判断其他玩家出牌是否符合规则 /// </summary> /// <param name="myOutPokerList">玩家打算出的牌</param> /// <param name="myPokerByType">玩家手牌中该类型的所有牌</param> /// <param name="OutPokerType">玩家打算出的牌中的该类型的所有牌</param> /// <param name="mLevelPokerNum"></param> /// <param name="masterPokerType"></param> /// <returns></returns> public static bool IsSendByTuoLaJi(List <PokerInfo> myOutPokerList, List <PokerInfo> myPokerByType, List <PokerInfo> OutPokerType, int mLevelPokerNum, int masterPokerType) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PlayRuleUtil_hotfix", "IsSendByTuoLaJi")) { bool b = (bool)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PlayRuleUtil_hotfix", "IsSendByTuoLaJi", null, myOutPokerList, myPokerByType, OutPokerType, mLevelPokerNum, masterPokerType); return(b); } int count = myOutPokerList.Count; if (myPokerByType.Count <= count) { return(OutPokerType.Count == myPokerByType.Count); } List <PokerInfo> myDoublePoker = PlayRuleUtil.GetDoublePoker(myPokerByType); List <PokerInfo> outDoublePoker = PlayRuleUtil.GetDoublePoker(myOutPokerList); if (myDoublePoker.Count <= count) { return(outDoublePoker.Count == myDoublePoker.Count); } //很多对子+ List <List <PokerInfo> > allTljFromDouble = PlayRuleUtil.GetAllTljFromDouble(myDoublePoker, mLevelPokerNum, masterPokerType); List <List <PokerInfo> > allTljFromoutDouble = PlayRuleUtil.GetAllTljFromDouble(outDoublePoker, mLevelPokerNum, masterPokerType); if (allTljFromDouble.Count > 0) { return(allTljFromoutDouble.Count > 0); } else { return(outDoublePoker.Count == count); } }
// 显示公告 public void loadGongGao() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("NoticePanelScript_hotfix", "loadGongGao")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.NoticePanelScript_hotfix", "loadGongGao", null, null); return; } m_curShowHuoDong = false; m_ListViewScript.clear(); for (int i = 0; i < NoticelDataScript.getInstance().getNoticeDataList().Count; i++) { if (NoticelDataScript.getInstance().getNoticeDataList()[i].type == 1) { GameObject prefab = Resources.Load("Prefabs/UI/Item/Item_Notice_List") as GameObject; GameObject obj = MonoBehaviour.Instantiate(prefab); obj.GetComponent <Item_Notice_List_Script>().m_parentScript = this; obj.GetComponent <Item_Notice_List_Script>().setNoticeData(NoticelDataScript.getInstance().getNoticeDataList()[i]); obj.transform.name = NoticelDataScript.getInstance().getNoticeDataList()[i].notice_id.ToString(); m_ListViewScript.addItem(obj); } } m_ListViewScript.addItemEnd(); if (m_ListViewScript.getItemCount() > 0) { m_text_zanwu.transform.localScale = new Vector3(0, 0, 0); } else { m_text_zanwu.transform.localScale = new Vector3(1, 1, 1); m_text_zanwu.text = "暂无公告"; } }
public void onDllGetOver() { OtherData.IsDllLoadOver = true; // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("Login_hotfix", "onDllGetOver")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.LoginScript_hotfix", "onDllGetOver", null, null); return; } { // 禁止多点触摸 Input.multiTouchEnabled = false; // 永不息屏 Screen.sleepTimeout = SleepTimeout.NeverSleep; OtherData.s_screenSize = new Vector2(Screen.width, Screen.height); // 安卓回调 //AndroidCallBack.s_onPauseCallBack = onPauseCallBack; //AndroidCallBack.s_onResumeCallBack = onResumeCallBack; } //ToastScript.clear(); { //GameUtil.hideGameObject(m_debugLog); // 用于打印屏幕日志 //m_debugLogScript = m_debugLog.GetComponent<DebugLogScript>(); } //m_inputAccount.text = PlayerPrefs.GetString("account", ""); //m_inputPassword.text = PlayerPrefs.GetString("password", ""); //Set3rdLogin(); //setLogonTypeUI(); }
public void setPVPGameRoomData(PVPGameRoomData PVPGameRoomData) { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PVP_List_Item_Script_hotfix", "setPVPGameRoomData")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PVP_List_Item_Script_hotfix", "setPVPGameRoomData", null, PVPGameRoomData); return; } m_PVPGameRoomData = PVPGameRoomData; m_text_changci.text = m_PVPGameRoomData.gameroomname; m_text_kaisairenshu.text = "满" + m_PVPGameRoomData.kaisairenshu.ToString() + "人开赛"; // 左边场次类型图标:金币、蓝钻石 { CommonUtil.setImageSprite(m_image_changci_icon, GameUtil.getPropIconPath(m_PVPGameRoomData.reward_id)); } if (m_PVPGameRoomData.baomingfei.CompareTo("0") == 0) { m_text_baomingfei.text = "免费"; m_image_baomingfei_icon.transform.localScale = new Vector3(0, 0, 0); } else { // 报名费类型:金币、蓝钻石 { List <string> list = new List <string>(); CommonUtil.splitStr(m_PVPGameRoomData.baomingfei, list, ':'); CommonUtil.setImageSprite(m_image_baomingfei_icon, GameUtil.getPropIconPath(m_PVPGameRoomData.baomingfei_id)); m_text_baomingfei.text = " *" + m_PVPGameRoomData.baomingfei_num; } } m_text_baomingrenshu.text = "已报名人数:" + m_PVPGameRoomData.baomingrenshu; InvokeRepeating("onInvoke", 5, 5); }