From ea185afc20a915d15eae8adb07d0acd837f3c210 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 01 十二月 2025 11:37:29 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Guild/GuildHawkerWin.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Main/System/Guild/GuildHawkerWin.cs b/Main/System/Guild/GuildHawkerWin.cs
index 0beb2df..89230f1 100644
--- a/Main/System/Guild/GuildHawkerWin.cs
+++ b/Main/System/Guild/GuildHawkerWin.cs
@@ -17,7 +17,7 @@
     [SerializeField] Button cutBtn;
     [SerializeField] Text cutText;
     [SerializeField] Text timeText;
-
+    [SerializeField] UIHeroController heroController;
 
 
 
@@ -38,6 +38,7 @@
         scroller.OnRefreshCell += OnRefreshCell;
         GuildManager.Instance.UpdateZhenbaogeEvent += OnPlayerZBGEvent;
         GlobalTimeEvent.Instance.secondEvent += OnSecondEvent;
+        GlobalTimeEvent.Instance.fiveSecondEvent += OnFiveSecondEvent;
         
         Display();
         CreateScroller();
@@ -55,6 +56,7 @@
         scroller.OnRefreshCell -= OnRefreshCell;
         GuildManager.Instance.UpdateZhenbaogeEvent -= OnPlayerZBGEvent;
         GlobalTimeEvent.Instance.secondEvent -= OnSecondEvent;
+        GlobalTimeEvent.Instance.fiveSecondEvent -= OnFiveSecondEvent;
     }
 
     void OnSecondEvent()
@@ -62,6 +64,12 @@
         timeText.text = Language.Get("Guild_74", TimeUtility.SecondsToShortDHMS((int)(TimeUtility.GetTodayEndTime() - TimeUtility.ServerNow).TotalSeconds));
     }
 
+    int index = 0;
+    void OnFiveSecondEvent()
+    {
+        index++;
+        heroController.PlayAnimation(index % 2 == 0 ? "idle" : "hanhua", true);
+    }
     void OnRefreshCell(ScrollerDataType type, CellView cell)
     {
         var _cell = cell as GuildHawkerCutCell;

--
Gitblit v1.8.0