feat: 更新存档管理,添加异步存档槽管理功能,优化存档验证逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user