【飞升】============飞升添加特效

dev_chengFeng
wangzhenxing 2022-01-07 13:41:57 +08:00
parent e5c176cd9f
commit a68fa4e0f6
3 changed files with 3 additions and 0 deletions

View File

@ -345,6 +345,7 @@ function this.FormationAdapter(teamInfo)
this.Demons[hero.position].hero:SetActive(true)
local star,starType = GetStarOrGodSoulLv(1,hero)
SetHeroStars(this.spLoader, this.Demons[hero.position].starGrid, star,starType)
SetHeroFlyEffect(this.Demons[hero.position].hero,this.spLoader,star,this.sortingOrder+1,1,2)
Util.SetParticleSortLayer(this.Demons[hero.position].starGrid,this.sortingOrder + 1)
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, demonId)
this.Demons[hero.position].proIcon.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))

View File

@ -121,6 +121,7 @@ function this.SingleHeroDataShow(go,_heroData)
starSize = Vector2.New(60,57)
end
SetHeroStars(this.spLoader, starGrid, star,starType,starSize,starScale)
SetHeroFlyEffect(Util.GetGameObject(_go.transform, "GameObject"),this.spLoader,star,sort,1.1,2)
Util.SetParticleSortLayer(starGrid, sort + 1)
local choosed =Util.GetGameObject(_go.transform, "choosed")
local formationMask =Util.GetGameObject(_go.transform, "formationMask")

View File

@ -342,6 +342,7 @@ function RoleFlyUpLayout:UpdateHeroUpStarProUpShow()
-- 生成一个临时英雄数据,使用完成后需主动清理
local tempDId, tempData = HeroTempPropManager.CreateTempHero(curHeroData.dynamicId)
LogError("upStarRankUpConfig.Id=="..upStarRankUpConfig.Id.." breakid=="..curHeroData.breakId)
tempData.upStarId = upStarRankUpConfig.Id
tempData.breakId = curHeroData.breakId
local nextallAddProVal = {}