feat: 更新存档管理,添加异步存档槽管理功能,优化存档验证逻辑

This commit is contained in:
2026-05-20 16:18:35 +08:00
parent 8c66640a6d
commit acb36d750f
7 changed files with 60 additions and 16 deletions

View File

@@ -28,6 +28,16 @@ public class SpeedrunTimer : MonoBehaviour, ISaveable
/// <summary>上一帧已显示的整秒值,展示内容未变化时跳过字符串重建。</summary>
private int _lastDisplayedSecond = -1;
private void OnEnable()
{
ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Register(this);
}
private void OnDisable()
{
ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Unregister(this);
}
private void Start()
{
bool show = _settings != null && _settings.ShowSpeedrunTimer;