public static GameObject create(int notice_id, NoticePanelScript parentScript) { GameObject prefab = Resources.Load("Prefabs/UI/Panel/NoticeDetailPanel") as GameObject; GameObject obj = GameObject.Instantiate(prefab, GameObject.Find("Canvas_Middle").transform); obj.GetComponent <NoticeDetailScript>().setNoticeId(notice_id); obj.GetComponent <NoticeDetailScript>().m_parentScript = parentScript; return(obj); }
public void showNextPanel() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("EnterMainPanelShowManager_hotfix", "showNextPanel")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.EnterMainPanelShowManager_hotfix", "showNextPanel", null, null); return; } if (!getEnterMainPanelObjIShowByName("sign")) { setEnterMainPanelObjIShowByName("sign", true); if (!Sign30RecordData.getInstance().todayIsSign()) { Sign30PanelScript.create(); } else { showNextPanel(); } } else if (!getEnterMainPanelObjIShowByName("newPlayerTuiGuang")) { setEnterMainPanelObjIShowByName("newPlayerTuiGuang", true); // 显示新人推广 if (!OtherData.s_mainScript.checkShowNewPlayerTuiGuang()) { showNextPanel(); } } else if (!getEnterMainPanelObjIShowByName("activity")) { setEnterMainPanelObjIShowByName("activity", true); NoticePanelScript.create(); } else if (!getEnterMainPanelObjIShowByName("huizhangduihuan")) { setEnterMainPanelObjIShowByName("huizhangduihuan", true); string time = "isShowHuiZhangDuiHuan_" + CommonUtil.getCurYearMonthDay(); if (PlayerPrefs.GetInt(time, 0) == 0) { PlayerPrefs.SetInt(time, 1); MedalDuiHuanPanelScript.create(); } } else { } }
public void onClickDuiHuan() { // 优先使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("TurntablePanelScript_hotfix", "onClickDuiHuan")) { ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.TurntablePanelScript_hotfix", "onClickDuiHuan", null, null); return; } Destroy(gameObject); NoticePanelScript.create(); }