屏蔽更新、加分修复

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_DOWN = 1,
VERSION_DOWN = 0,
-- 更新
VERSION_UPDATE = 2,
VERSION_UPDATE = 0,
}
function ExtendHotupdate.UpdateGameList(list, callback)

View File

@ -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
local curScore = tonumber(self._tex_score.text)
curScore = curScore or 0
self:ScoreAnimation(score - curScore)
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

View File

@ -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

View File

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