示例#1
0
    public void UpdateBounds(float new_bottomBoundX, float new_upperBoundX, float new_bottomBoundY, float new_upperBoundY)
    {
        lineRenderer.RemoveAllPoints();
        bottomBoundX = new_bottomBoundX;
        upperBoundX  = new_upperBoundX;
        bottomBoundY = new_bottomBoundY;
        upperBoundY  = new_upperBoundY;

        for (int i = 0; i < pointsOnGraph.Count; ++i)
        {
            Add(pointsOnGraph[i].x, pointsOnGraph[i].y, false);
        }

        UpdateTextNotationX();
        UpdateTextNotationY();
    }
示例#2
0
 private void HidePointsOnGraph(UIGraphNormalizer normalizer, UILineRenderer lineRenderer)
 {
     lineRenderer.RemoveAllPoints();
     normalizer.RemoveAllPoints();
 }