public void SetArticle(NewsArticle article) { this.title.text = article.Title; this.body.text = article.Body; this.image.texture = article.Image; }
public void ExpandArticleView(NewsArticle article) { this.NewsListPanel.SetActive(false); this.ArticleViewPanel.gameObject.SetActive(true); this.ArticleViewPanel.SetArticle(article); }