This commit is contained in:
chenxi 2023-04-19 17:10:23 +08:00
parent c4a922aba8
commit 4e629d3da4

View File

@ -31,6 +31,7 @@ function BattleUnitComp:playBorn()
end end
function BattleUnitComp:playSwitchIn() function BattleUnitComp:playSwitchIn()
self.baseObject:getTransform():SetAsLastSibling()
self:changeState(UNIT_STATE.SWITCH_IN) self:changeState(UNIT_STATE.SWITCH_IN)
end end