优化
This commit is contained in:
parent
60b7a2677e
commit
c4f034e13e
@ -1,5 +1,7 @@
|
|||||||
local LargeHeroCell = class("LargeHeroCell", BaseCell)
|
local LargeHeroCell = class("LargeHeroCell", BaseCell)
|
||||||
|
|
||||||
|
local OUT_SCREEN_X = 10000
|
||||||
|
|
||||||
function LargeHeroCell:init()
|
function LargeHeroCell:init()
|
||||||
local uiMap = self.baseObject:genAllChildren()
|
local uiMap = self.baseObject:genAllChildren()
|
||||||
self.icon = uiMap["hero_cell.hero_bg.icon"]
|
self.icon = uiMap["hero_cell.hero_bg.icon"]
|
||||||
@ -15,6 +17,7 @@ function LargeHeroCell:init()
|
|||||||
if not self.heroId or not self.matchType then
|
if not self.heroId or not self.matchType then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
self.baseObject:setAnchoredPositionX(OUT_SCREEN_X)
|
||||||
ModuleManager.HeroManager:showHeroDetailUI(self.heroId)
|
ModuleManager.HeroManager:showHeroDetailUI(self.heroId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@ -22,6 +25,7 @@ function LargeHeroCell:init()
|
|||||||
if not self.heroId or not self.matchType then
|
if not self.heroId or not self.matchType then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
self.baseObject:setAnchoredPositionX(OUT_SCREEN_X)
|
||||||
ModuleManager.FormationManager:upHeroToStageFormation(self.heroId, self.matchType)
|
ModuleManager.FormationManager:upHeroToStageFormation(self.heroId, self.matchType)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user