private IEnumerator AutoSave() { while (!Scene.FinishGameLoad) { yield return(null); } SteamDSConfig.SetServerStatus(1); yield return(new WaitForEndOfFrame()); yield return(new WaitForEndOfFrame()); SteamDSConfig.SaveGame(); SteamDSConfig.SetServerStatus(0); Debug.Log("Game saved"); yield break; }
public static void StartAutoSaveMode() { SteamDSConfig.SetServerStatus(0); GameObject gameObject = new GameObject("GameAutoSave"); AutoSaveMode autoSaveMode = gameObject.AddComponent<AutoSaveMode>(); }