【车迟斗法】boss轮转

(cherry picked from commit ed59466b46)
dev_chengFeng
ZhangBiao 2021-01-11 17:46:34 +08:00
parent 0875314a5d
commit 37392b2b44
1 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ this.timer = Timer.New()
local challengeNum = 0
local lootNum = 0
local isPlayAnim = true
local bossNum = 0
--初始化组件(用于子类重写)
function GuildCarDelayMainPanel:InitComponent()
this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot")
@ -54,6 +55,12 @@ function GuildCarDelayMainPanel:InitComponent()
this.RankListPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 1, 1, Vector2.New(50,8))
this.ScrollView.moveTween.MomentumAmount = 1
this.ScrollView.moveTween.Strength = 1
for i, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.WorldBossConfig)) do
if v.Id > 0 then
bossNum = bossNum + 1
end
end
end
--绑定事件(用于子类重写)
@ -239,7 +246,7 @@ end
function this.GetLastBoss(curBossId)
local lastIndex = 0
if curBossId == 1 then
lastIndex = #ConfigManager.GetConfig(ConfigName.WorldBossConfig)
lastIndex = bossNum
else
lastIndex = curBossId - 1
end