| | |
| | | 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); |
| | | }); |
| | | |