Exemple #1
0
    public void SetItemData(NewsData data)
    {
        DataDefault();
        SetTxtBehindImage();

        txtNewsTitle.text       = data.newsTitle;
        txtNewsDescription.text = data.newsDescription;

        if (!string.IsNullOrEmpty(data.newsLink))
        {
            stringNewsLink = data.newsLink;
            //btnNews.interactable = true;
        }

        if (!string.IsNullOrEmpty(data.newsImagelink))
        {
            StartCoroutine(ImageUtility.CreateSpriteFromUrl(data.newsImagelink, SetImageNews));
        }
    }