Esempio n. 1
0
        public void DropComplete(bool value)
        {
            if (!value)
            {
                return;
            }

            dropCompleteCounter += 1;

            // if all objects have dropped, graph line chart
            if (dropCompleteCounter == objectsList.Count)
            {
                graphCreator.CreateGraph();
                dropCompleteCounter = 0;

                // show feedback
                if (gameController)
                {
                    gameController.ShowFeedbackPopup(10);
                }

                // track
                var props = new Value();
                props["Scene Name"] = SceneManager.GetActiveScene().name;
                Mixpanel.Track("Ran Simulation", props);
            }
        }
Esempio n. 2
0
 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();
 }