| | |
| | |
|
| | | StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
| | | bool isLogin = true;
|
| | | public bool isOpenPrompting { get; set;}
|
| | | public override void Init()
|
| | | {
|
| | | OpenServerActivityCenter.Instance.Register((int)OpenServerActivityCenter.OSActivityType.MysticalPurchase, this);
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | isOpenPrompting = true;
|
| | | isLogin = true;
|
| | | mysticalShopDict.Clear();
|
| | | GlobalTimeEvent.Instance.halfMinuteEvent -= UpdateSecond;
|
| | |
| | | }
|
| | |
|
| | | #region 红点
|
| | | public event Action UpdateNewMysticalEvent;
|
| | | public const int MysticalRedKey = 20918;
|
| | | public Redpoint mysticalRedpoint = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, MysticalRedKey);
|
| | | public void UpdateRedpoint()
|
| | |
| | | else
|
| | | {
|
| | | mysticalRedpoint.state = RedPointState.None;
|
| | | }
|
| | |
|
| | | if(UpdateNewMysticalEvent != null)
|
| | | {
|
| | | UpdateNewMysticalEvent();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public void CloseRedPoint()
|
| | | {
|
| | | mysticalRedpoint.state = RedPointState.None;
|
| | |
|
| | | if (UpdateNewMysticalEvent != null)
|
| | | {
|
| | | UpdateNewMysticalEvent();
|
| | | }
|
| | | }
|
| | | #endregion
|
| | | }
|