예제 #1
0
    IEnumerator CheckAndRecord(int playerID)
    {
        while (isPlaying)
        {
            yield return(null);
        }

        OnEnable();
        Gif.StartRecording(recorder[playerID]);
    }
예제 #2
0
        public void StartRecording()
        {
            // Dispose the old clip
            if (recordedClip != null)
            {
                recordedClip.Dispose();
            }

            Gif.StartRecording(recorder);
            startRecordingButton.SetActive(false);
            stopRecordingButton.SetActive(true);
            recordingMark.SetActive(true);
        }
예제 #3
0
    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");
    }
예제 #4
0
 public override void OnEnter()
 {
     Gif.StartRecording((Recorder)recorder.Value);
     Finish();
 }