| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent -= UpdateSecond;
|
| | | isOpenPrompting = true;
|
| | | ResetDragData();
|
| | | ResetPoolData();
|
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent += UpdateSecond;
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void UpdateSecond()
|
| | | {
|
| | | if (!IsOpen || freeWishRedpoint.state != RedPointState.None) return;
|
| | |
|
| | | int second = 0;
|
| | | bool isCool = TryGetFreeWishCoolTime(out second);
|
| | | if(!isCool)
|
| | | {
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | #region 本地数据
|
| | | public bool isDraging { get; set; }
|
| | | public int dragIndex { get; set; }
|