巅峰战竞猜记录显示
parent
0b40fda687
commit
6bdc5a1db8
|
@ -101,7 +101,7 @@ function this.RefreshData(go, itemData)
|
|||
local betResult = tonumber(itemData.betResult)
|
||||
local personInfo1uid = tonumber(personInfo[1].uid)
|
||||
local personInfo2uid = tonumber(personInfo[2].uid)
|
||||
LogBlue("battleInfo.fightResult "..battleInfo.fightResult)
|
||||
LogBlue("battleInfo.fightResult "..battleInfo.fightResult.." itemData.betResult "..itemData.betResult)
|
||||
if betResult > 1 and betResult ==personInfo1uid then
|
||||
sheng.transform:SetParent(shengOrBaiParent1.transform)
|
||||
bai.transform:SetParent(shengOrBaiParent2.transform)
|
||||
|
@ -113,11 +113,11 @@ function this.RefreshData(go, itemData)
|
|||
bai.transform.localPosition = Vector3.zero
|
||||
local index = betResult
|
||||
if betResult > 1 then
|
||||
if betResult == personInfo1uid then
|
||||
index = 2
|
||||
elseif betResult == personInfo2uid then
|
||||
index = 3
|
||||
end
|
||||
if itemData.myWinCoins > 0 then
|
||||
index = 2
|
||||
else
|
||||
index = 3
|
||||
end
|
||||
end
|
||||
LogGreen("index "..index)
|
||||
local config = stateConfig[index]
|
||||
|
|
Loading…
Reference in New Issue