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