【引导】引导类型19:切换到3倍速
parent
34b02496f2
commit
10b275ea33
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue