public void RemoveCell(AUIForumThreadCell cell)
        {
            var removeCell = threadCells.Find(x => x.Thread.Id == cell.Thread.Id);

            if (removeCell != null)
            {
                threadCells.Remove(removeCell);

                contents.RemoveItem(removeCell.GetComponent<RectTransform>());

                Destroy(removeCell.gameObject);

                Sort();
            }
        }
 public void SetThreadCell(AUIForumThreadCell threadCell)
 {
     this.ThreadCell = threadCell;
 }
        public void RemoveCell(AUIForumThreadCell cell)
        {
            nodeAll.RemoveCell(cell);

            nodeImages.RemoveCell(cell);

            nodeVideos.RemoveCell(cell);
        }
        public void GoToThread(AUIForumThreadCell cell, Fresvii.AppSteroid.Models.Comment comment, bool animate, bool skipForum)
        {
            if (frame.Animating) return;

            StopScroll();

            RectTransform rectTransform = GetComponent<RectTransform>();

            GameObject thread = Instantiate(prfbThread) as GameObject;

            thread.GetComponent<RectTransform>().SetParent(transform.parent, false);

            thread.transform.SetAsLastSibling();

            AUIThread threadManager = thread.GetComponent<AUIThread>();

            threadManager.showComment = comment;

            threadManager.auiForumManager = this;

            threadManager.SetThreadCell(cell);

            AUIFrame nextFrame = threadManager.frame;

            if (animate)
            {
                if (skipForum)
                {
                    nextFrame.backFrame = frame.backFrame;

                    nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => {});

                    this.gameObject.SetActive(false);
                }
                else
                {
                    nextFrame.backFrame = this.frame;

                    nextFrame.Animate(new Vector2(rectTransform.rect.width, 0f), Vector2.zero, () => { });

                    frame.Animate(Vector2.zero, new Vector2(-rectTransform.rect.width * 0.5f, 0f), () =>
                    {
                        this.gameObject.SetActive(false);
                    });
                }
            }
            else
            {
                nextFrame.backFrame = this.frame;

                this.gameObject.SetActive(false);

                nextFrame.SetPosition(Vector2.zero);
            }
        }