Exemple #1
0
        public void AddLine(TextNode n, Vector2 left, float width, float height, Color color, Vector2 uv, int speed)
        {
            if (m_Data == null)
            {
                m_Data       = new DrawLineStruct();
                maxWidth     = 0f;
                currentWidth = 0f;
            }

            maxWidth += width;
            m_Data.lines.Add(new DrawLineStruct.Line()
            {
                leftPos = left, width = width, height = height, color = color, uv = uv, node = n, dynSpeed = speed
            });
        }
Exemple #2
0
 public override void Release()
 {
     base.Release();
     m_Data = null;
 }