예제 #1
0
 public void SetDetails(AdvancedPost post)
 {
     titleText.text = post.Title;
     image.texture  = post.Texture;
     scrollView.SetText(post.Description);
     scrollView.SetText("Placeholder");
     scrollView.SetText(post.Description);
 }
예제 #2
0
 private void ClickedPost(AdvancedPost post)
 {
     if (!_postDetail.isInViewControllerHierarchy)
     {
         PushViewControllerToNavigationController(_navCon, _postDetail);
     }
     if (firstClick)
     {
         SharedCoroutineStarter.instance.StartCoroutine(WaitToSet(post));
         firstClick = false;
     }
     else
     {
         _postDetail.SetDetails(post);
     }
 }
예제 #3
0
        private IEnumerator WaitToSet(AdvancedPost post)
        {
            yield return(new WaitForSeconds(.05f));

            _postDetail.SetDetails(post);
        }