From 10b275ea339bae4307973212c84b900ee0b482b5 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 9 Dec 2021 11:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BC=95=E5=AF=BC=E3=80=91=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E7=B1=BB=E5=9E=8B19=EF=BC=9A=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B03=E5=80=8D=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Guide/GuidePanel.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua index b4feb3997f..a9f1305a79 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guide/GuidePanel.lua @@ -504,6 +504,19 @@ function this.ExecuteBehavior(beType, beArgs) StoryManager.EventTrigger(tonumber(beArgs), function() this.NextGuide() end) + + elseif beType == 19 then -- 三倍速引导,点击直接切换到3倍速 + local btn = Util.GetGameObject(UIManager.uiRoot, beArgs):GetComponent("Button") + this.button:GetComponent("Button").onClick:RemoveAllListeners() + Util.AddClick(this.button, function() + -- 设置战斗3倍速 + BattleManager.SetTimeScale(BATTLE_TIME_SCALE_THREE) + -- + this.NextGuide() + this.button:GetComponent("Button").onClick:RemoveAllListeners() + Util.AddClick(this.button, this.NextGuide) + end) + this.SetBtnGOPosition(btn.gameObject:GetComponent("RectTransform").position) end end