(client) chore:Clean code

This commit is contained in:
2025-08-28 16:20:24 +08:00
parent 909e995e15
commit c3bff1cf88
76 changed files with 5689 additions and 445 deletions

View File

@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UI;
using UnityEngine;
using UnityEngine.SceneManagement;
using Object = UnityEngine.Object;
namespace Base
{
@ -72,7 +70,7 @@ namespace Base
needUpdate = false;
return;
}
if(_visibleWindows.Any(window => window.isInputOccupied))
if (_visibleWindows.Any(window => window.isInputOccupied))
return;
foreach (var window in _allWindows)
{
@ -114,10 +112,10 @@ namespace Base
// 显示目标窗口并更新缓存与暂停状态
windowToShow.Show();
var itick=windowToShow as ITickUI;
var itick = windowToShow as ITickUI;
if (itick != null)
Base.Clock.AddTickUI(itick);
needUpdate = true;
}
@ -202,7 +200,7 @@ namespace Base
protected override void OnStart()
{
SceneManager.sceneLoaded += OnSceneLoaded;
RegisterAllWindows();
}