Autosave at reasonable moments:
Timer:
time += Time.deltaTime; if (time >= interval) { SaveGame(); time = 0f; }
On exit:
void OnApplicationQuit() { SaveGame(); }
Do not write save files every frame.