| | |
| | | DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent += OnPlayerLoginOk; |
| | | RechargeManager.Instance.rechargeCountEvent += OnRechargeCountEvent; |
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent; |
| | | |
| | | InitClickTabDict(); |
| | | InitRedPoint(); |
| | | } |
| | | |
| | | public override void Release() |
| | |
| | | { |
| | | firstChargeInfoDict.Clear(); |
| | | } |
| | | |
| | | public void OnPlayerLoginOk() |
| | | { |
| | | InitClickTabDict(); |
| | | InitRedPoint(); |
| | | if (FuncOpen.Instance.IsFuncOpen(FuncID)&& TryGetUnBuyFirstId(out int firstId)) |
| | | { |
| | | PopupWindowsProcessor.Instance.Add("FirstChargeWin"); |
| | | } |
| | | } |
| | | |
| | | public bool TryGetFirstChargeDataByFirstId(int firstId, out FirstChargeData firstChargeData) |
| | | { |
| | | return firstChargeInfoDict.TryGetValue(firstId, out firstChargeData); |