public void onClickShare()
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PVPGameResultPanelScript_hotfix", "onClickShare"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PVPGameResultPanelScript_hotfix", "onClickShare", null, null);
            return;
        }

        ChoiceShareScript.Create("我赢过许多人却没有输给过你,快来帮我赢话费!", "");
    }
    public void onClickShare()
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("ShowRewardPanelScript_hotfix", "onClickShare"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.ShowRewardPanelScript_hotfix", "onClickShare", null, null);
            return;
        }

        ChoiceShareScript.Create("疯狂升级天天玩,玩就有话费奖品抱回家!", "");
    }
Exemplo n.º 3
0
    public void onClickShare()
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("PVPEndPanelScript_hotfix", "onClickShare"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.PVPEndPanelScript_hotfix", "onClickShare", null, null);
            return;
        }

        //m_parentScript.onClickExitRoom();
        //        ToastScript.createToast("暂未开放");
        ChoiceShareScript.Create("我在疯狂升级比赛场赢得了胜利,话费、徽章等你来拿!", "");
    }
    // 大礼来袭
    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 void onClickShare()
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("GameResultPanelScript_hotfix", "onClickShare"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.GameResultPanelScript_hotfix", "onClickShare", null, null);
            return;
        }

        if (m_isWin)
        {
            ChoiceShareScript.Create("我在疯狂升级普通场赢得了胜利,话费、徽章等你来拿!", "");
        }
        else
        {
            ChoiceShareScript.Create("我赢过许多人却没有输给过你,下载游戏和我一起玩吧!", "");
        }
    }