hch
1 天以前 2189b0e39ed3fb36c1a3082e87a7280227f4c9e2
0312 官职任务点击优化
1个文件已修改
31 ■■■■ 已修改文件
Main/System/OfficialRank/OfficialUpCell.cs 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/OfficialRank/OfficialUpCell.cs
@@ -52,19 +52,36 @@
        taskProcessText.text = process + "/" + total;
        int itemID = config.AwardItemList[0][0];
        taskReward.Init(new ItemCellModel(itemID, false, config.AwardItemList[0][1]));
        // taskReward.button.AddListener(() =>
        // {
        //     ItemTipUtility.Show(itemID);
        // });
        getBtn.AddListener(() =>
        taskReward.button.AddListener(() =>
        {
            if (state != 1)
            if (state == 0)
            {
                UIManager.Instance.CloseWindow<OfficialUpWin>();
                NewBieCenter.Instance.StartNewBieGuide(OfficialRankManager.Instance.guideDict[type]);
                return;
            }
            else if (state == 2)
            {
                ItemTipUtility.Show(itemID);
                return;
            }
            OfficialRankManager.Instance.RequestAllAwards(id);
        });
        getBtn.AddListener(() =>
        {
            if (state == 0)
            {
                UIManager.Instance.CloseWindow<OfficialUpWin>();
                NewBieCenter.Instance.StartNewBieGuide(OfficialRankManager.Instance.guideDict[type]);
                return;
            }
            else if (state == 2)
            {
                return;
            }
            OfficialRankManager.Instance.RequestAllAwards(id);
        });