Ejemplo n.º 1
0
        public void ThereShouldBeOnlyBeARecordingWhenRecordingHasStarted()
        {
            Recording before = recordingController.GetRecording();

            recordingController.StartRecording();
            Recording after = recordingController.GetRecording();

            Assert.IsNull(before);
            Assert.IsNotNull(after);
        }
Ejemplo n.º 2
0
        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);
        }