// 老用户特权 public static void setPanel_laoyonghutequan(string url) { // 使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ActivityManager_hotfix", "setPanel_laoyonghutequan")) { s_panel = (GameObject)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ActivityManager_hotfix", "setPanel_laoyonghutequan", 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.localPosition = new Vector3(163.5f, 14.62f, 0); script.m_btn1.transform.Find("Text").GetComponent <Text>().text = "前往获得"; script.m_btn1.onClick.AddListener(() => { GameObject.Destroy(OtherData.s_activity.gameObject); OldPlayerBindPanelScript.create(); }); script.m_btn2.transform.localScale = new Vector3(0, 0, 0); script.m_btn3.transform.localScale = new Vector3(0, 0, 0); }
// 大礼来袭 public static void setPanel_dalilaixi(string url) { // 使用热更新的代码 if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ActivityManager_hotfix", "setPanel_dalilaixi")) { s_panel = (GameObject)ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ActivityManager_hotfix", "setPanel_dalilaixi", 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.localPosition = new Vector3(269.73f, 74.3f, 0); script.m_btn1.transform.Find("Text").GetComponent <Text>().text = "前往获得"; script.m_btn1.onClick.AddListener(() => { ChoiceShareScript.Create("疯狂升级天天玩,玩就有话费奖品抱回家!", ""); }); } { script.m_btn2.transform.localPosition = new Vector3(269.73f, -29.52f, 0); script.m_btn2.transform.Find("Text").GetComponent <Text>().text = "前往获得"; script.m_btn2.onClick.AddListener(() => { GameObject.Destroy(OtherData.s_activity.gameObject); OtherData.s_mainScript.onClickEnterXiuXianChang(); }); } { script.m_btn3.transform.localPosition = new Vector3(269.73f, -141.35f, 0); script.m_btn3.transform.Find("Text").GetComponent <Text>().text = "前往获得"; script.m_btn3.onClick.AddListener(() => { GameObject.Destroy(OtherData.s_activity.gameObject); TuiGuangYouLiPanelScript.create(); }); } }
// 微信公众号 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); }