Beispiel #1
0
    public void OnClick()
    {
        chatArea.GetComponent <UITextList>().Clear();
        tempText = this.transform.parent.FindChild("rule_" + gameid).GetComponent <UILabel>().text;

        char[]   delimiterChars = { '\r', '\n' };
        string[] words          = tempText.Split(delimiterChars);
        foreach (string s in words)
        {
            chatArea.Add(s);
        }
        chatArea.transform.parent.FindChild("Scroll Bar").GetComponent <UIScrollBar>().value = 0;
    }