Esempio n. 1
0
 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);
         }
     }
 }
Esempio n. 2
0
 public static void SaveGameDifficulty()
 {
     PlayerPrefsFile.SetString("difficulty", (!GameSetup.IsCreativeGame) ? GameSetup.Difficulty.ToString() : "Creative", true);
 }
Esempio n. 3
0
 public static void SaveHostGameGUID()
 {
     PlayerPrefsFile.SetString("guid", CoopLobby.Instance.Info.Guid, true);
 }