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