Esempio n. 1
0
    private void SavingTriggered()
    {
        if (saving_triggered_)
        {
            return;
        }

        if (saveReplayFrames)
        {
            replayPath = handController.FinishAndSaveRecording();
        }
        else
        {
            handController.StopRecording();
            replayPath = "";
        }
        handController.PlayRecording();
        if (synchronizeRecorder != null &&
            synchronizeRecorder.camRecorder != null)
        {
            synchronizeRecorder.camRecorder.StopRecording();
        }
        SetProgressText("SAVING", Color.red);
        SetInstructionText("SAVING", Color.red);
        if (replayPath.Length > 0)
        {
            SetSavedPathsText("Replay File @ " + replayPath);
        }
        saving_triggered_ = true;
    }
Esempio n. 2
0
 private void allowEndRecording()
 {
     if (controlsGui != null)
     {
         controlsGui.text += endRecordingKey + " - End Recording\n";
     }
     if (Input.GetKeyDown(endRecordingKey))
     {
         string savedPath = _controller.FinishAndSaveRecording();
         recordingGui.text = "Recording saved to:\n" + savedPath;
     }
 }
    void Update()
    {
        HandController controller = GetComponent <HandController>();

        if (Input.GetKeyDown(record))
        {
            controller.Record();
        }

        if (Input.GetKeyDown(finishAndSave))
        {
            Debug.Log("Recording saved to: " + controller.FinishAndSaveRecording());
        }

        if (Input.GetKeyDown(resetRecording))
        {
            controller.ResetRecording();
        }
    }