惊喜礼包拍脸修改
parent
b6b55590b3
commit
46621252d9
|
@ -395,8 +395,8 @@ function this.SetPatFaceDaqta(PatFaceDatas)
|
||||||
local str = PlayerPrefs.GetString(PlayerManager.uid.."Surprise")
|
local str = PlayerPrefs.GetString(PlayerManager.uid.."Surprise")
|
||||||
str = string.split(str,"#")
|
str = string.split(str,"#")
|
||||||
local curTimeStemp = math.floor(GetTimeStamp() / (24 * 3600))
|
local curTimeStemp = math.floor(GetTimeStamp() / (24 * 3600))
|
||||||
local times = str[2]
|
local times = tonumber(str[2])
|
||||||
if str[1] ~= curTimeStemp then
|
if tonumber(str[1]) ~= curTimeStemp then
|
||||||
times = 0
|
times = 0
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
|
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
|
||||||
end
|
end
|
||||||
|
@ -411,7 +411,7 @@ function this.SetPatFaceDaqta(PatFaceDatas)
|
||||||
end
|
end
|
||||||
if isShow then
|
if isShow then
|
||||||
times = times + 1
|
times = times + 1
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",str[1].."#"..times)
|
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue