| | |
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent += UpdateSecond;
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | UpdateFreeWishRedpoint();
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | {
|
| | | if (type == Operation.WishingWellInfo && state == 0)
|
| | | {
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | UpdateFreeWishRedpoint();
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate((int)OpenServerActivityCenter.OSActivityType.WishingPool);
|
| | |
| | | {
|
| | | if (type == Operation.WishingWellInfo && state == 0)
|
| | | {
|
| | | UpdateFreeWishRedpoint();
|
| | | |
| | | UpdateRedpoint();
|
| | | UpdateFreeWishRedpoint();
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate((int)OpenServerActivityCenter.OSActivityType.WishingPool);
|
| | |
| | | if(!isCool)
|
| | | {
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | SetWishingAwardData(i, wellItem);
|
| | | }
|
| | | }
|
| | | UpdateFreeWishRedpoint();
|
| | | UpdateRedpoint();
|
| | | if(UpdateWishAwardEvent != null)
|
| | | UpdateFreeWishRedpoint();
|
| | | if (UpdateWishAwardEvent != null)
|
| | | {
|
| | | UpdateWishAwardEvent();
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | UpdateRedpoint();
|
| | | UpdateFreeWishRedpoint();
|
| | | }
|
| | |
|
| | | public void SetWishingPoolData(int index, WishingWellItem wellItem)
|
| | |
| | | {
|
| | | freeWishRedpoint.state = RedPointState.None;
|
| | | if (!IsOpen) return;
|
| | | for (int i = 0; i < wishPointlist.Count; i++)
|
| | | {
|
| | | var wishPoint = wishPointlist[i];
|
| | | if(wishPoint.state != RedPointState.None)
|
| | | {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | int second = 0;
|
| | | bool isCool = TryGetFreeWishCoolTime(out second);
|
| | |
| | | wishPoint.state = RedPointState.None;
|
| | | }
|
| | |
|
| | | if (!IsOpen || freeWishRedpoint.state != RedPointState.None) return;
|
| | | if (!IsOpen) return;
|
| | |
|
| | | for (int i = 0; i < wishPointlist.Count; i++)
|
| | | {
|