/** * Initializes the points to be displayed on the energy graph. * points length initialized to the maximum event length. */ public void InitializePoints() { // Make array of size = max event length points = new Vector3[(int)visEvent.GetMaxDOMs()]; Debug.Log("Max DOMs: " + points.Length); // initialize point values for (int i = 0; i < points.Length; i++) { // Set X distance between adjacent points float x = (i * 5f); // Set initial energy (Y) to 0 // Set Z = 0 because graph is relative to the GameObject with this component points[i] = new Vector3(x, 0f, 0f); } }