private void graphData() { graphCreator.ClearGraphs(); createEmptyGraphs(); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataEKin, dataName, dataColor), "Kinetic Energy"); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataEPot, dataName, dataColor), "Potential Energy"); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataETot, dataName, dataColor), "Total Energy"); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataSpeed, dataName, dataColor), "Speed"); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataHeight, dataName, dataColor), "Height"); graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataAcceleration, dataName, dataColor), "Acceleration"); graphCreator.CreateGraph(); }
public void UpdateIsPlaced(bool value) { isPlaced = value; // activate or deactivate text if (value) { dropInstructionsTMP.gameObject.active = true; heightInstructionsTMP.gameObject.active = false; // clear graph also graphCreator.ClearGraphs(); createEmptyGraphs(); } else { dropInstructionsTMP.gameObject.active = false; heightInstructionsTMP.gameObject.active = true; } }