void AddData(string txt) { GameObject commentManagerObj = GameObject.Find("CommentManager"); CommentManagerOld commentManager = commentManagerObj.GetComponent <CommentManagerOld>(); CommentDataOld data = new CommentDataOld(txt, rect.pivot, rect.localPosition, rect.sizeDelta.x, rect.sizeDelta.y); commentManager.AddCommentData(data); commentManager.UpdateBoard(); }
public void AddCommentData(CommentDataOld data) { commentDataList.Add(data); }