Esempio n. 1
0
    public void Init(URichText text)
    {
        if (isInit)
        {
            return;
        }

        dicSpriteMeshInfos.Clear();
        animSpriteMeshInfoIndexs.Clear();
        isInit = true;
    }
Esempio n. 2
0
        public static bool HandleTextMesh(URichTextParseInfo info, VertexHelper toFill, URichText text)
        {
            //Debug.Log("HandleMesh [" + info.type + "] :" + info.vertStartIndex + " " + (info.startIndex + info.realLength-1) + " " + info.realLength);
            handlers[(int)info.type].richText = text;
            handlers[(int)info.type].vHelper  = toFill;
            bool success = handlers[(int)info.type].HandleTextMesh(info);

            handlers[(int)info.type].curIndex++;

            return(success);
        }