Beispiel #1
0
    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;
    }
Beispiel #2
0
	public static void StartAutoSaveMode()
	{
		SteamDSConfig.SetServerStatus(0);
		GameObject gameObject = new GameObject("GameAutoSave");
		AutoSaveMode autoSaveMode = gameObject.AddComponent<AutoSaveMode>();
	}