Ejemplo n.º 1
0
        int SortCondition(AUIForumCommentCell a, AUIForumCommentCell b)
        {
            int ret = System.DateTime.Compare(a.Comment.CreatedAt, b.Comment.CreatedAt);

            if (ret != 0)
            {
                return ret;
            }

            ret = string.Compare(a.Comment.User.Name, b.Comment.User.Name);

            return ret;
        }
Ejemplo n.º 2
0
        public void RemoveCell(AUIForumCommentCell cell)
        {
            commentCells.Remove(cell);

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

            Destroy(cell.gameObject);
        }