增加容错
This commit is contained in:
parent
72d90d6499
commit
859bbd42b9
@ -1215,6 +1215,9 @@ function BattleBaseUI:onInitGridCellOver()
|
||||
local pos = entity:getPos()
|
||||
cell:getBaseObject():setParent(self.gridNode, true)
|
||||
cell:getBaseObject():setAnchoredPosition(pos.x, pos.y)
|
||||
if entity:getIsIdle() then
|
||||
cell:getBaseObject():setAnchoredPositionX(DEFAULT_X)
|
||||
end
|
||||
entity:setCell(cell)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user