public static void SaveHostGameGUID() { if (CoopLobby.Instance != null && CoopLobby.Instance.Info != null) { PlayerPrefsFile.SetString("guid", CoopLobby.Instance.Info.Guid, true); } else { bool flag = !string.IsNullOrEmpty(CoopLobby.HostGuid); Debug.LogError("Failed to store host GUID (lobby no longer exists) fallback=" + flag); if (flag) { PlayerPrefsFile.SetString("guid", CoopLobby.HostGuid, true); } } }
public static void SaveGameDifficulty() { PlayerPrefsFile.SetString("difficulty", (!GameSetup.IsCreativeGame) ? GameSetup.Difficulty.ToString() : "Creative", true); }
public static void SaveHostGameGUID() { PlayerPrefsFile.SetString("guid", CoopLobby.Instance.Info.Guid, true); }