Beispiel #1
0
    /// <summary>末尾に文字追加</summary>
    public void addLast(string aText)
    {
        TagReader tReader = new TagReader(aText);

        while (!tReader.isEnd())
        {
            TagReader.Element tElement = tReader.read();
            //1文字
            if (tElement is TagReader.OneChar)
            {
                StringElement tStringElement = StringElement.create(((TagReader.OneChar)tElement).mChar, this);
                addLast(tStringElement);
                continue;
            }
            //開始タグ
            if (tElement is TagReader.StartTag)
            {
                applyStartTag(((TagReader.StartTag)tElement));
                continue;
            }
            //終了タグ
            if (tElement is TagReader.EndTag)
            {
                applyEndTag(((TagReader.EndTag)tElement));
                continue;
            }
            Debug.LogWarning("MyTextBoard : 文字読み込み失敗 次の文字「" + tReader.mNext.ToString() + "」");
        }
        _Text += aText;
    }