private static CloudEnvironment GetCloudEnvironment() { if (PlayerPrefs.HasKey(SettingsKeys.CloudEnvironment)) { return((CloudEnvironment)System.Enum.Parse(typeof(CloudEnvironment), PlayerPrefs.GetString(SettingsKeys.CloudEnvironment))); } return(CloudConfiguration.GetEnvironment()); }