From 09bc892c7283df8757a07b646d5af21ddaa263d1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 18:22:34 +0800
Subject: [PATCH] 164 天子的考验-客户端

---
 Main/Component/UI/Effect/TimeMgr.cs |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/Main/Component/UI/Effect/TimeMgr.cs b/Main/Component/UI/Effect/TimeMgr.cs
index 212af32..e1be090 100644
--- a/Main/Component/UI/Effect/TimeMgr.cs
+++ b/Main/Component/UI/Effect/TimeMgr.cs
@@ -9,13 +9,11 @@
     private Dictionary<Component, TimeItem> timeItems = new Dictionary<Component, TimeItem>();
     private List<TimeItem> timeItemList = new List<TimeItem>();
     private int hourBuff = -1;
-    private int minuteBuff = -1;
     public int dayBuff = -1;
     public int monthBuff { get { return LocalSave.GetInt("month"); } private set { LocalSave.SetInt("month", value); } }
     public int weekBuff { get { return LocalSave.GetInt("week"); } private set { LocalSave.SetInt("week", value); } }
     public event Action OnDayEvent;
     public event Action OnHourEvent;
-    public event Action OnMinuteEvent;
     public event Action OnMonthAfterPlayerDataInitializeEvent;
     public event Action OnWeekAfterPlayerDataInitializeEvent;
 
@@ -56,18 +54,10 @@
                 }
                 hourBuff = TimeUtility.ServerNow.Hour;
             }
-            if (minuteBuff != TimeUtility.ServerNow.Minute)
-            {
-                if (OnMinuteEvent != null)
-                {
-                    OnMinuteEvent();
-                }
-                minuteBuff = TimeUtility.ServerNow.Minute;
-            }
         }
         catch (Exception e)
         {
-            DebugEx.Log(e.StackTrace);
+            Debug.Log(e.StackTrace);
         }
         for (int i = 0; i < syntonyList.Count; i++)
         {
@@ -222,7 +212,7 @@
         {
             endTime = TimeUtility.ServerNow.AddSeconds(_totalTime);
             callback = _func;
-            DebugEx.LogFormat("{0}{1}", type, endTime);
+            Debug.LogFormat("{0}{1}", type, endTime);
         }
     }
 

--
Gitblit v1.8.0