Esempio n. 1
0
    public static void LoadPlatformPlayer()
    {
        if (!lookedForPlatformPreferences)
        {
            var jsonString = WebGLParameters.GetParameterJson();
            Debug.Log("Loaded parameters: " + JsonUtility.ToJson(jsonString, true));

            PlatformPreferences.Current = JsonUtility.FromJson <PlatformPreferences>(jsonString);
        }
    }
Esempio n. 2
0
    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);
            }
        }
    }