private IEnumerator GetAvatar()
{
string url = "Ссылка на картинку";
WWW img = new WWW(url);
yield return img;
Image imga = avatar.GetComponent<Image>();
imga.sprite = Sprite.Create((Texture2D)img.texture, new Rect(0, 0, img.texture.width, img.texture.height), Vector2.zero);
}