Exemplo n.º 1
0
    IEnumerator CheckAndRecord(int playerID)
    {
        while (isPlaying)
        {
            yield return(null);
        }

        OnEnable();
        Gif.StartRecording(recorder[playerID]);
    }
Exemplo n.º 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);
        }
Exemplo n.º 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");
    }
Exemplo n.º 4
0
 public override void OnEnter()
 {
     Gif.StartRecording((Recorder)recorder.Value);
     Finish();
 }