【森罗幻境】森罗幻境神魂特效穿透

dev_chengFeng
gaoxin 2021-11-08 15:04:36 +08:00
parent 3dffd71924
commit fc38e204ce
1 changed files with 11 additions and 0 deletions

View File

@ -293,6 +293,11 @@ function this.OnPowerValueChange()
end
function this.OnSortingOrderChange()
if this.starGridList then
for _, starGrid in pairs(this.starGridList) do
Util.SetParticleSortLayer(starGrid,MapPanel.sortingOrder + 1)
end
end
Util.AddParticleSortLayer(this.chufa, MapPanel.sortingOrder - orginLayer)
orginLayer = MapPanel.sortingOrder
end
@ -450,6 +455,8 @@ function TrialMapPanel:OnDestroy()
this.spLoader:Destroy()
ClearRedPointObject(RedPointType.TrialReward)
SubUIManager.Close(this.upView)
-- 清空数据
this.starGridList = {}
end
@ -499,6 +506,10 @@ function this.SetSelectHero(isFirstIn,isFirstData,isMainIn)
pro.sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig[v.tmpId].PropertyName))
lv.text=v.level
local star,starType = GetStarOrGodSoulLv(1,v)
if not this.starGridList then
this.starGridList = {}
end
this.starGridList[i] = starGrid
SetHeroStars(this.spLoader, starGrid, star,starType)
Util.SetParticleSortLayer(starGrid,MapPanel.sortingOrder + 1)
--选择