示例#1
0
        //-----------------------------------------------------------------------------------
        private void ChangeToReplayingModeDone()
        {
            stopRequested_ = false;
            SimulationManager.ChangeToReplayingDone();

            manager_.BuildBakerData();

            EditorApplication.update -= UpdateSimulating;
            EditorApplication.update += UpdateReplaying;

            SimulationManager.SetReplayingFrame((uint)frame_, false);

            SceneView.RepaintAll();
            CRManagerEditor.RepaintIfOpen();
        }
示例#2
0
        //-----------------------------------------------------------------------------------
        private void ChangeToReplayingModeDone()
        {
            Int64 checksum = SimulationManager.CalculateChecksum();

            CarDebug.Log(string.Format("Finished in {0:F3} secs. Checksum: " + Convert.ToString(checksum, 16), SimulationManager.GetSimulatingRealTime()));

            stopRequested_ = false;
            SimulationManager.ChangeToReplayingDone();

            manager_.BuildBakerData();
            manager_.BuildDisplayerVisibilityIntervals();

            EditorApplication.update -= UpdateSimulating;
            EditorApplication.update += UpdateReplaying;

            SimulationManager.SetReplayingFrame((uint)frame_, true);

            playbackRangeMin_ = 0;
            playbackRangeMax_ = frame_;

            SceneView.RepaintAll();
            CarManagerEditor.RepaintIfOpen();
        }