From e660e02f44933f28dc0d42c541332aae66040ef8 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 28 十一月 2025 22:15:04 +0800
Subject: [PATCH] 0312 行商小人喊话
---
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