public void AddPoint() { xVal++; yVal += Random.Range(0f, 1f); Vector2 vec = new Vector2(xVal, yVal); Debug.Log(string.Format("Plotting point {0}", vec)); graph.AddPoint(vec, 2, true); }