瀏覽代碼

七日签到和每日签到,不要绑定在一起

zhangyuqian 1 年之前
父節點
當前提交
9c524cc500

+ 4 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/ActivitySProxy.cs

@@ -54,7 +54,10 @@ namespace GFGGame
                             TimeUtil.GetCurDay());
                         if (!isGot)
                         {
-                            ViewManager.Show<DailySignView>(new object[] { 1 });
+                            if (RedDotDataManager.Instance.DailySignRed())
+                            {
+                                ViewManager.Show<DailySignView>(new object[] { 1 });
+                            }  
                         }
                     });
 

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/DailySignView.cs

@@ -22,6 +22,7 @@ namespace GFGGame
         private float _signCount;
         private int _month;
         private int _day;
+        private bool isOpenPanel = true;
 
         public override void Dispose()
         {

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/SevenDayLoginView.cs

@@ -60,8 +60,13 @@ namespace GFGGame
         protected override void OnHide()
         {
             base.OnHide();
+            if (GameGlobal.isLogon && RedDotDataManager.Instance.DailySignRed())
+            {
+                ViewManager.Show<DailySignView>();
+            }
             _ui.m_list.numItems = 0;
             ViewManager.SetMaskAlpha(0.6f);
+            GameGlobal.isLogon = false;
         }
         private void ListItemRender(int index, GObject obj)
         {
@@ -95,6 +100,7 @@ namespace GFGGame
                 {
                     LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 2);
                     UpdateView();
+                    GameGlobal.isLogon = false;
                 }
             }
             else

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -218,7 +218,11 @@ namespace GFGGame
                     GuideDataManager.currentGuideId <= 0)
                 {
                     ViewManager.Show<SevenDayLoginView>();
-                    GameGlobal.isLogon = false;
+                    
+                }
+                else if (RedDotDataManager.Instance.DailySignRed())
+                {
+                    ViewManager.Show<DailySignView>();
                 }
 
                 //GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);