|
|
|
|
|
|
[SerializeField] private SaveSystem _saveSystem = default; |
|
|
|
|
|
|
|
private bool isColdStart = false; |
|
|
|
|
|
|
|
[SerializeField] private SaveSystem _saveSystem = default; |
|
|
|
private void Awake() |
|
|
|
{ |
|
|
|
if (!SceneManager.GetSceneByName(_persistentManagersSO.sceneReference.editorAsset.name).isLoaded) |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void CreateSaveFileIfNotPresent() |
|
|
|
{ |
|
|
|
if (_saveSystem != null && !_saveSystem.LoadSaveDataFromDisk()) |
|
|
|
{ |
|
|
|
_saveSystem.WriteEmptySaveFile(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
} |