예제 #1
0
    // Show Game Menu
    public void ShowGameMenu()
    {
        // Request User Profile
        WWWForm _data = new WWWForm();

        _data.AddField("fields", "about,sex,bdate,city,country,photo_max,online");
        VK.Call("users.get", _data, (string data) => {                              // OK
            ProfileResponse profile = JsonUtility.FromJson <ProfileResponse>(data); // Convert
            _loadProfile(profile);
            GameMenu.SetActive(true);
        }, (BaseErrorModel error) => { // Error
            if (VK.settings.debug_mode)
            {
                Debug.Log("VK API Error: " + error.error_msg);
            }
        });
    }