IEnumerator CheckAndRecord(int playerID) { while (isPlaying) { yield return(null); } OnEnable(); Gif.StartRecording(recorder[playerID]); }
public void StartRecording() { // Dispose the old clip if (recordedClip != null) { recordedClip.Dispose(); } Gif.StartRecording(recorder); startRecordingButton.SetActive(false); stopRecordingButton.SetActive(true); recordingMark.SetActive(true); }
public void StartRecording(int playerID) { // Dispose the old clip return; if (recordedClip1 != null) { recordedClip1.Dispose(); } if (recordedClip2 != null) { recordedClip2.Dispose(); } Gif.StartRecording(recorder[playerID]); // StartCoroutine(CheckAndRecord(playerID)); print("start record"); }
public override void OnEnter() { Gif.StartRecording((Recorder)recorder.Value); Finish(); }