战斗统计头像同步
parent
1678e59100
commit
ae81c18d49
|
@ -447,7 +447,7 @@ function this.SetHeadShow()
|
|||
if player then
|
||||
this.player:SetActive(true)
|
||||
if player.sex then
|
||||
this.player:GetComponent("Image").sprite = this.spLoader:LoadSprite(sexIcon[player.sex])
|
||||
this.player:GetComponent("Image").sprite =GetPlayerHeadSprite(this.spLoader, PlayerManager.head)
|
||||
end
|
||||
|
||||
else
|
||||
|
|
|
@ -397,7 +397,11 @@ function this.HeadAdapter(head,data,type)
|
|||
aa=skinConfig.Icon
|
||||
end
|
||||
end
|
||||
if data.position==100 then
|
||||
icon.sprite = GetPlayerHeadSprite(this.spLoader, PlayerManager.head)
|
||||
else
|
||||
icon.sprite = this.spLoader:LoadSprite(GetResourcePath(aa))
|
||||
end
|
||||
-- 等级
|
||||
lv:SetActive(true)
|
||||
lvText.text = config.lv
|
||||
|
|
Loading…
Reference in New Issue