Пример #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;
        }
Пример #2
0
        public void RemoveCell(AUIForumCommentCell cell)
        {
            commentCells.Remove(cell);

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

            Destroy(cell.gameObject);
        }