//----------------------------------------------------------------------------------- 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(); }