[角色朝向]======进阶展示,皮肤显示,好感度
parent
a8e619b8c6
commit
dd248f37f6
|
@ -231,7 +231,7 @@ function LikeAbilityPanel:SingleHeroDataShow(_go,data)
|
|||
local bg = Util.GetGameObject(card, "bg")
|
||||
local icon = Util.GetGameObject(card, "icon"):GetComponent("Image")
|
||||
icon.sprite = self.spLoader:LoadSprite(GetResourcePath(data.Painting))
|
||||
SetHEeroLiveToward(icon.gameObject,data.Toward)
|
||||
--SetHEeroLiveToward(icon.gameObject,data.Toward)
|
||||
SetHeroBg(self.spLoader,card ,bg ,data.Star,data.Quality)
|
||||
local pro = Util.GetGameObject(_go.transform, "card/pro/Image"):GetComponent("Image")
|
||||
pro.sprite = self.spLoader:LoadSprite(GetProStrImageByProNum(data.PropertyName))
|
||||
|
|
|
@ -716,7 +716,10 @@ function this:ChangeCurentHeroSkinLive(herodata)
|
|||
end
|
||||
if herodata then
|
||||
this.curLiveObj=HeroManager.LoadHerolive1(herodata,this.curObj)
|
||||
if herodata.heroConfig then
|
||||
SetHEeroLiveToward(this.curLiveObj,herodata.heroConfig.Toward)
|
||||
end
|
||||
|
||||
-- 临时保存皮肤位置
|
||||
curHeroPosition = herodata.Position
|
||||
else
|
||||
|
|
|
@ -109,6 +109,7 @@ function RoleUpStarSuccessPanel:OnOpen(...)
|
|||
Vector3.one * curHeroData.heroConfig.Scale, Vector3.New(curHeroData.heroConfig.Position[1],curHeroData.heroConfig.Position[2],0))
|
||||
SetHeroStars(this.spLoader, this.starGrid, curHeroData.star+1,1,Vector2.New(60,60),-11,Vector2.New(0.5,0.5))
|
||||
Util.SetParticleSortLayer(this.starGrid,self.sortingOrder + 1)
|
||||
SetHEeroLiveToward(this.LiveGO,curHeroData.heroConfig.Toward)
|
||||
this.profession.sprite = this.spLoader:LoadSprite(GetHeroPosStr(curHeroData.heroConfig.Profession))
|
||||
|
||||
LogPink("curHeroData.heroConfig.PropertyName"..curHeroData.heroConfig.PropertyName)
|
||||
|
|
Loading…
Reference in New Issue