Пример #1
0
    public void Draw()
    {
        if (canvas == null)
        {
            m_PendingDraw = true;
            return;
        }
        ResetBeforeRedraw();
        DrawScale();

        canvas.drawingGraphics.Clear();
        canvas.Clear();
        if (Data == null)
        {
            return;
        }
        if (AnimateEffect)
        {
            StopCoroutine("AnimateChart");
            StartCoroutine("AnimateChart", AnimateDuration);
        }
        else
        {
            BeforeDrawItems(1);
            DrawItems(1);
            AfterDrawItems(1);
            DrawAxies();
            canvas.SetVerticesDirty();
        }
    }