public void ThereShouldBeOnlyBeARecordingWhenRecordingHasStarted() { Recording before = recordingController.GetRecording(); recordingController.StartRecording(); Recording after = recordingController.GetRecording(); Assert.IsNull(before); Assert.IsNotNull(after); }
public static void FinishGame(bool disconnected = false) { // get the recording RecordingController recorder = GameObject.FindObjectOfType <RecordingController> (); Recording recording = null; if (recorder != null) { recording = recorder.GetRecording(); } // take it to the postgame menu SceneManager.ExitGameOnFinish(recording, disconnected); }