屏蔽更新、加分修复

master
1076390229 2025-08-15 15:01:35 +08:00
parent 982a08103f
commit 7168d4b238
4 changed files with 13 additions and 7 deletions

View File

@ -46,9 +46,9 @@ ExtendHotupdate = {
-- 正常 -- 正常
VERSION_NORMAL = 0, VERSION_NORMAL = 0,
-- 下载 -- 下载
VERSION_DOWN = 1, VERSION_DOWN = 0,
-- 更新 -- 更新
VERSION_UPDATE = 2, VERSION_UPDATE = 0,
} }
function ExtendHotupdate.UpdateGameList(list, callback) function ExtendHotupdate.UpdateGameList(list, callback)

View File

@ -199,7 +199,7 @@ function M:FillData(player)
end end
end end
function M:UpdateScore(score) function M:UpdateScore(score, doAnimation)
if not score then if not score then
score = self._player.total_score score = self._player.total_score
local room = DataManager.CurrenRoom local room = DataManager.CurrenRoom
@ -215,9 +215,12 @@ function M:UpdateScore(score)
end end
end end
local curScore = tonumber(self._tex_score.text) if doAnimation then
curScore = curScore or 0 local curScore = tonumber(self._tex_score.text)
self:ScoreAnimation(score - curScore) curScore = curScore or 0
self:ScoreAnimation(score - curScore)
end
self._tex_score.text = tostring(score) self._tex_score.text = tostring(score)
end end

View File

@ -680,7 +680,7 @@ function M:OnResult1(...)
if _room:checkHpNonnegative() then if _room:checkHpNonnegative() then
p.cur_hp = data[i].total_score p.cur_hp = data[i].total_score
end end
-- info:UpdateScore() info:UpdateScore()
info._view:GetChild("zhanji").visible = true info._view:GetChild("zhanji").visible = true
local num = data[i].total_score local num = data[i].total_score
if num >= 0 then if num >= 0 then

View File

@ -198,6 +198,9 @@ public class Hotupdate {
public void LoadAsset() public void LoadAsset()
{ {
Done = true;
Progress = 1;
return;
GameApplication.Instance.StartCoroutine(__LoadAsset()); GameApplication.Instance.StartCoroutine(__LoadAsset());
} }