..
This commit is contained in:
parent
9acaebbcb8
commit
a92bcdd8ed
@ -396,7 +396,6 @@ function ChapterComp:generateChapterMonsters()
|
||||
end
|
||||
local monsterCfg = ConfigManager:getConfig("monster_base")
|
||||
local monsterInfo = monsterCfg[monsterId]
|
||||
Logger.logHighlight("================== monsterInfo = %s", monsterInfo)
|
||||
if monsterInfo == nil then
|
||||
return
|
||||
end
|
||||
@ -420,8 +419,6 @@ function ChapterComp:generateChapterMonsters()
|
||||
posY = -math.random(1, 240)
|
||||
end
|
||||
self.isTopTurn = not self.isTopTurn
|
||||
Logger.logHighlight("================== parent = %s", parent)
|
||||
Logger.logHighlight("================== modelId = %s", modelId)
|
||||
if pool and #pool > 0 then
|
||||
local spine = table.remove(pool)
|
||||
table.insert(list, spine)
|
||||
@ -429,12 +426,10 @@ function ChapterComp:generateChapterMonsters()
|
||||
self:doMonsterMove(modelId, spine, posY, monsterInfo, not self.isTopTurn)
|
||||
else
|
||||
SpineManager:loadUIHeroSpineWidgetAsync(modelId, parent, function(spine)
|
||||
Logger.logHighlight("==================1 self.startMonsterAction = %s", self.startMonsterAction)
|
||||
if not self.startMonsterAction then
|
||||
spine:destroy()
|
||||
return
|
||||
end
|
||||
Logger.logHighlight("==================2 self.startMonsterAction = %s", self.startMonsterAction)
|
||||
table.insert(list, spine)
|
||||
local scale = monsterInfo.ui or 1
|
||||
spine:setLocalScale(-scale, scale, scale)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user