【引导】引导类型19:切换到3倍速

dev_chengFeng
gaoxin 2021-12-09 11:17:47 +08:00
parent 34b02496f2
commit 10b275ea33
1 changed files with 13 additions and 0 deletions

View File

@ -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