【公会红包】报错修改

dev_chengFeng
ZhangBiao 2021-04-10 17:57:49 +08:00
parent 692e1de637
commit cc34d28e8d
2 changed files with 4 additions and 3 deletions

View File

@ -73,6 +73,7 @@ function PlayerHead:UnLoadFrameEffect()
end
function PlayerHead:SetLayer(orderLayer)
if not orderLayer then return end
if self.frameEffect then
Util.AddParticleSortLayer(self.frameEffect, orderLayer - self.orderLayer)
self.orderLayer = orderLayer

View File

@ -108,7 +108,7 @@ function this:SetFirstShow(data)
this.firstHead[this.firstPre]:SetFrame(data.headFrame)
this.firstHead[this.firstPre]:SetLevel(data.level)
this.firstHead[this.firstPre]:SetScale(Vector3.one *0.9)
this.firstHead[this.firstPre]:SetLayer(this.sortingOrder)
this.firstHead[this.firstPre]:SetLayer(sortingOrder)
this.firstHead[this.firstPre]:SetEffectScale(0.85)
this.firstPlayerName.text=data.userName
@ -139,8 +139,8 @@ function this:SetShow(root,data,mydata)
this.playerScrollHead[root]:SetFrame(data.headFrame)
this.playerScrollHead[root]:SetLevel(data.level)
this.playerScrollHead[root]:SetScale(Vector3.one * 0.7)
this.playerScrollHead[root]:SetLayer(this.sortingOrder)
this.firstHead[this.firstPre]:SetEffectScale(0.75)
this.playerScrollHead[root]:SetLayer(sortingOrder)
this.playerScrollHead[root]:SetEffectScale(0.75)
playerName.text = data.userName
for k, v in pairs(uidList) do