存档完善和修复

This commit is contained in:
2026-05-20 15:45:11 +08:00
parent 8ae2de5bcb
commit c50f8a6cf7
3 changed files with 16 additions and 4 deletions

View File

@@ -41,6 +41,9 @@ namespace BaseGames.Progression
InitStates();
}
private void OnEnable() => ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Register(this);
private void OnDisable() => ServiceLocator.GetOrDefault<ISaveableRegistry>()?.Unregister(this);
private void OnDestroy()
{
ServiceLocator.Unregister<IAchievementService>(this);