public static void LoadPlatformPlayer() { if (!lookedForPlatformPreferences) { var jsonString = WebGLParameters.GetParameterJson(); Debug.Log("Loaded parameters: " + JsonUtility.ToJson(jsonString, true)); PlatformPreferences.Current = JsonUtility.FromJson <PlatformPreferences>(jsonString); } }
public static void LoadPlatformPlayer() { if (!lookedForPlatformPreferences) { var jsonString = WebGLParameters.GetParameterJson(); Debug.Log("Loaded parameters: " + JsonUtility.ToJson(jsonString, true)); PlatformPreferences.Current = JsonUtility.FromJson <PlatformPreferences>(jsonString); if (PlatformPreferences.Current?.Keys != null) { BasePlayerManager.Instance.AddPlayer(PlatformPreferences.Current.Keys); } } }