Example #1
0
    private void _loadProfile(ProfileResponse profile)
    {
        // Load Profile Image
        StartCoroutine(VK.LoadImage(profile.response[0].photo_max, AvatarUI.GetComponent <Image>(), () => {
        }, (string err) => {
            Debug.Log(err);
        }));

        // Load Other Profile Data
        NameUI.GetComponent <Text>().text     = profile.response[0].first_name + " " + profile.response[0].last_name;
        StatusUI.GetComponent <Text>().text   = (profile.response[0].online == 1) ? "Сейчас в сети" : "Сейчас не в сети";
        AboutUI.GetComponent <Text>().text    = (profile.response[0].about.Length > 0)? profile.response[0].about:"Пользователь ничего не указал о себе :(";
        LocationUI.GetComponent <Text>().text = profile.response[0].city.title + ", " + profile.response[0].country.title;
    }