Ejemplo n.º 1
0
    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 static void Start()
        {
            MedalDuiHuanPanelScript script = OtherData.s_medalDuiHuanPanelScript;

            script.m_listView_duihuanshangpin = script.m_obj_duihuanshangpin.GetComponent <ListViewScript>();
            script.m_listView_duihuanjilu     = script.m_obj_duihuanjilu.GetComponent <ListViewScript>();

            script.m_text_myMedalNum.text = UserData.medal.ToString();

            NetLoading.getInstance().Show();

            LogicEnginerScript.Instance.GetComponent <GetMedalDuiHuanRewardRequest>().CallBack = script.onCallBackGetMedalDuiHuanReward;
            LogicEnginerScript.Instance.GetComponent <GetMedalDuiHuanRewardRequest>().OnRequest();

            // 更新的部分
            {
                if (ShieldWeChat.isShield(OtherData.s_channelName))
                {
                    script.gameObject.transform.Find("Image_bg/Image_down/Text_tip").localScale = Vector3.zero;
                }
            }
        }