parent
0875314a5d
commit
37392b2b44
|
@ -17,6 +17,7 @@ this.timer = Timer.New()
|
||||||
local challengeNum = 0
|
local challengeNum = 0
|
||||||
local lootNum = 0
|
local lootNum = 0
|
||||||
local isPlayAnim = true
|
local isPlayAnim = true
|
||||||
|
local bossNum = 0
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function GuildCarDelayMainPanel:InitComponent()
|
function GuildCarDelayMainPanel:InitComponent()
|
||||||
this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot")
|
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.RankListPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 1, 1, Vector2.New(50,8))
|
||||||
this.ScrollView.moveTween.MomentumAmount = 1
|
this.ScrollView.moveTween.MomentumAmount = 1
|
||||||
this.ScrollView.moveTween.Strength = 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
|
end
|
||||||
|
|
||||||
--绑定事件(用于子类重写)
|
--绑定事件(用于子类重写)
|
||||||
|
@ -239,7 +246,7 @@ end
|
||||||
function this.GetLastBoss(curBossId)
|
function this.GetLastBoss(curBossId)
|
||||||
local lastIndex = 0
|
local lastIndex = 0
|
||||||
if curBossId == 1 then
|
if curBossId == 1 then
|
||||||
lastIndex = #ConfigManager.GetConfig(ConfigName.WorldBossConfig)
|
lastIndex = bossNum
|
||||||
else
|
else
|
||||||
lastIndex = curBossId - 1
|
lastIndex = curBossId - 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue