From 6bc12ee94875f85ed8af21165b65b203d3c2452e Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期四, 22 十一月 2018 11:42:46 +0800
Subject: [PATCH] 4742 【1.3】【前端】神秘限购开发

---
 System/OpenServerActivity/MysticalPurchaseModel.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/System/OpenServerActivity/MysticalPurchaseModel.cs b/System/OpenServerActivity/MysticalPurchaseModel.cs
index 1ee0e34..a859dcc 100644
--- a/System/OpenServerActivity/MysticalPurchaseModel.cs
+++ b/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
     }

--
Gitblit v1.8.0