屏蔽更新、加分修复
parent
982a08103f
commit
7168d4b238
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
if doAnimation then
|
||||||
local curScore = tonumber(self._tex_score.text)
|
local curScore = tonumber(self._tex_score.text)
|
||||||
curScore = curScore or 0
|
curScore = curScore or 0
|
||||||
self:ScoreAnimation(score - curScore)
|
self:ScoreAnimation(score - curScore)
|
||||||
|
end
|
||||||
|
|
||||||
self._tex_score.text = tostring(score)
|
self._tex_score.text = tostring(score)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue