少年修仙传客户端代码仓库
Client_PangDeRong
2018-11-22 6bc12ee94875f85ed8af21165b65b203d3c2452e
System/OpenServerActivity/MysticalPurchaseModel.cs
@@ -15,6 +15,7 @@
        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);
@@ -22,6 +23,7 @@
        public void OnBeforePlayerDataInitialize()
        {
            isOpenPrompting = true;
            isLogin = true;
            mysticalShopDict.Clear();
            GlobalTimeEvent.Instance.halfMinuteEvent -= UpdateSecond;
@@ -187,6 +189,7 @@
        }
        #region 红点
        public event Action UpdateNewMysticalEvent;
        public const int MysticalRedKey = 20918;
        public Redpoint mysticalRedpoint = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, MysticalRedKey);
        public void UpdateRedpoint()
@@ -200,6 +203,11 @@
            else
            {
                mysticalRedpoint.state = RedPointState.None;
            }
            if(UpdateNewMysticalEvent != null)
            {
                UpdateNewMysticalEvent();
            }
        }
@@ -216,6 +224,11 @@
        public void CloseRedPoint()
        {
            mysticalRedpoint.state = RedPointState.None;
            if (UpdateNewMysticalEvent != null)
            {
                UpdateNewMysticalEvent();
            }
        }
        #endregion
    }