FairyGUI.TypingEffect.output C# (CSharp) Method

output() private method

private output ( int vertCount ) : void
vertCount int
return void
        private void output(int vertCount)
        {
            Vector3[] vertices = _textField.graphics.vertices;
            int start, end;

            start = _mainLayerStart + _vertIndex;
            end = start + vertCount;
            for (int i = start; i < end; i++)
            {
                vertices[i] = _backupVerts[i];
                _backupVerts[i] = Vector3.zero;
            }

            if (_stroke)
            {
                start = _strokeLayerStart + _vertIndex;
                end = start + vertCount;
                for (int i = start; i < end; i++)
                {
                    for (int j = 0; j < 4; j++)
                    {
                        int k = i + _mainLayerVertCount * j;
                        vertices[k] = _backupVerts[k];
                        _backupVerts[k] = Vector3.zero;
                    }
                }
            }

            if (_shadow)
            {
                start = _vertIndex;
                end = start + vertCount;
                for (int i = start; i < end; i++)
                {
                    vertices[i] = _backupVerts[i];
                    _backupVerts[i] = Vector3.zero;
                }
            }

            _textField.graphics.mesh.vertices = vertices;

            _vertIndex += vertCount;
        }