【车迟斗法】boss轮转

dev_chengFeng
ZhangBiao 2021-01-11 17:46:34 +08:00
parent 05efc38052
commit ed59466b46
1 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
this.timer = Timer.New()
local challengeNum = 0
local lootNum = 0
local bossNum = 0
--初始化组件(用于子类重写)
function GuildCarDelayMainPanel:InitComponent()
this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot")
@ -53,6 +54,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
--绑定事件(用于子类重写)
@ -237,7 +244,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