fix bug task not update update in runtime.

This commit is contained in:
Chomper9981
2026-02-24 11:22:26 +07:00
parent 7050243d98
commit 837fc4973b
3 changed files with 150 additions and 11 deletions
+5 -3
View File
@@ -35,7 +35,7 @@ public class CECUIManager : MonoSingleton<CECUIManager>
// Task update timer / 任务更新计时器
private float _nextTaskUpdateTime = 0f;
private const float TASK_UPDATE_INTERVAL = 1f; // Update every 100ms / 每100毫秒更新一次
private const float TASK_UPDATE_INTERVAL = .1f;
protected override void Awake()
{
@@ -83,13 +83,15 @@ public class CECUIManager : MonoSingleton<CECUIManager>
var dlgTaskDialog = inGameUIMan.GetDialog("Win_Quest");
var dlgTaskTraceDialog = inGameUIMan.GetDialog("Win_QuestMinion");
if (dlgTaskTraceDialog != null && dlgTaskTraceDialog.IsShow())
if (dlgTaskDialog != null && dlgTaskDialog is BrewMonster.Scripts.Task.UI.DlgTask dlgTaskForTrace)
{
if (dlgTaskDialog != null && dlgTaskDialog is BrewMonster.Scripts.Task.UI.DlgTask dlgTaskForTrace)
if (dlgTaskTraceDialog != null && dlgTaskTraceDialog.IsShow())
{
dlgTaskForTrace.RefreshTaskTrace();
}
dlgTaskForTrace.Tick();
}
}
catch (System.Exception)
{