| | |
| | | |
| | | // <轮回类型, 上一次的CurValue> |
| | | public Dictionary<int, int> lastCurValueDict = new Dictionary<int, int>(); |
| | | |
| | | public event Action OnNewAwardHaveEvent; |
| | | public void CheckNewAwardHave(int roundType, int curRound, int curValue) |
| | | { |
| | | if (lastCurRoundDict.ContainsKey(roundType) && lastCurValueDict.ContainsKey(roundType)) |
| | |
| | | newAwardType = round.AwardType; |
| | | newAwardTypeValue = (int)round.AwardTypeValue; |
| | | newAwardIndex = Award.AwardIndex; |
| | | // if (!DTC0403_tagPlayerLoginLoadOK.neverLoginOk && !WindowCenter.Instance.IsOpen<CycleHallAchievementTipWin>()) |
| | | // { |
| | | // WindowCenter.Instance.Open<CycleHallAchievementTipWin>(); |
| | | // } |
| | | // UpdateNewAwardHave?.Invoke(); |
| | | if (!UIManager.Instance.IsOpened<TimeRushTipWin>()) |
| | | { |
| | | UIManager.Instance.OpenWindow<TimeRushTipWin>(); |
| | | } |
| | | OnNewAwardHaveEvent?.Invoke(); |
| | | } |
| | | } |
| | | } |