战斗统计头像同步

onepiece_demo_arena
xiejun 2024-02-01 15:35:05 +08:00
parent 1678e59100
commit ae81c18d49
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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