Exemple #1
0
    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();
    }
Exemple #2
0
 public void AddCommentData(CommentDataOld data)
 {
     commentDataList.Add(data);
 }