屏蔽更新、加分修复
parent
982a08103f
commit
7168d4b238
|
|
@ -46,9 +46,9 @@ ExtendHotupdate = {
|
|||
-- 正常
|
||||
VERSION_NORMAL = 0,
|
||||
-- 下载
|
||||
VERSION_DOWN = 1,
|
||||
VERSION_DOWN = 0,
|
||||
-- 更新
|
||||
VERSION_UPDATE = 2,
|
||||
VERSION_UPDATE = 0,
|
||||
}
|
||||
|
||||
function ExtendHotupdate.UpdateGameList(list, callback)
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ function M:FillData(player)
|
|||
end
|
||||
end
|
||||
|
||||
function M:UpdateScore(score)
|
||||
function M:UpdateScore(score, doAnimation)
|
||||
if not score then
|
||||
score = self._player.total_score
|
||||
local room = DataManager.CurrenRoom
|
||||
|
|
@ -215,9 +215,12 @@ function M:UpdateScore(score)
|
|||
end
|
||||
end
|
||||
|
||||
if doAnimation then
|
||||
local curScore = tonumber(self._tex_score.text)
|
||||
curScore = curScore or 0
|
||||
self:ScoreAnimation(score - curScore)
|
||||
end
|
||||
|
||||
self._tex_score.text = tostring(score)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -680,7 +680,7 @@ function M:OnResult1(...)
|
|||
if _room:checkHpNonnegative() then
|
||||
p.cur_hp = data[i].total_score
|
||||
end
|
||||
-- info:UpdateScore()
|
||||
info:UpdateScore()
|
||||
info._view:GetChild("zhanji").visible = true
|
||||
local num = data[i].total_score
|
||||
if num >= 0 then
|
||||
|
|
|
|||
|
|
@ -198,6 +198,9 @@ public class Hotupdate {
|
|||
|
||||
public void LoadAsset()
|
||||
{
|
||||
Done = true;
|
||||
Progress = 1;
|
||||
return;
|
||||
GameApplication.Instance.StartCoroutine(__LoadAsset());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue