[飞升]======飞升特效适配

dev_chengFeng
wangzhenxing 2022-01-19 18:34:35 +08:00
parent 5a66722aed
commit 9831008684
3 changed files with 3 additions and 1 deletions

View File

@ -155,6 +155,7 @@ function this:Refresh(_data,_item)
starSize = Vector2.New(36.868,39.76)
end
SetHeroStars(this.spLoader, _item.heroList[pos].starGrid, star,starType,starSize,starScale)
SetHeroFlyEffect(_item.heroList[pos].hero,this.spLoader,star,sortingOrder+1,0.5,2)
Util.SetParticleSortLayer( _item.heroList[pos].starGrid,sortingOrder + 1)
local demonId = heroData.id
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, demonId)

View File

@ -397,6 +397,7 @@ function this.RefreshFormation(_item,_data)
starSize = Vector2.New(36.868,39.76)
end
SetHeroStars(this.spLoader, _item.heroList[pos].starGrid, star,starType,starSize,starScale)
SetHeroFlyEffect(_item.heroList[pos].hero,this.spLoader,star,sortingOrder+1,0.5,2)
Util.SetParticleSortLayer( _item.heroList[pos].starGrid,sortingOrder + 1)
local demonId = heroData.id
local heroConfig = ConfigManager.GetConfigData(ConfigName.HeroConfig, demonId)

View File

@ -409,7 +409,7 @@ function this.FormationAdapter(teamInfo)
this.Demons[hero.position].levelText.text = hero.level
this.Demons[hero.position].frame.sprite = this.spLoader:LoadSprite(GetQuantityImageByquality(heroConfig.Quality, hero.star))
SetHeroIcon(this.spLoader, hero,this.Demons[hero.position].icon,heroConfig)
SetHeroFlyEffect(this.Demons[hero.position].hero,this.spLoader,hero.star,this.sortingOrder+1,1)
SetHeroFlyEffect(this.Demons[hero.position].hero,this.spLoader,hero.star,this.sortingOrder+1,0.9)
local heroData = {}
if this._Config.formationType == FormationTypeDef.FORMATION_TSLX then
Util.AddOnceClick(this.Demons[hero.position].frameBtn, function()