示例#1
0
    public void saveRecordingFile()
    {
        buttonAudioSource.PlayOneShot(buttonClickSound);

        string recordingFileName = RecordingFileInputText.Trim();

        if (!string.IsNullOrEmpty(recordingFileName))
        {
            SavedPath = RecordingDirectory + recordingFileName + ".bytes";
            CurrentRecordingFilePath = SavedPath;
            //handController.GetLeapRecorder().SaveToNewFile(CurrentRecordingFilePath);
            string condensedPath = shortenPath(CurrentRecordingFilePath);
            RecordingSavedPathText = "Recording saved to: " + condensedPath;

            RecordingInputInteractable        = false;
            RecordingSubmitButtonInteractable = false;

            StartCoroutine(resetText());
        }
        else
        {
            errorModalDialog.showErrorDialog(OkEvent);
        }

        RecordingFileInputText = "";
    }
示例#2
0
    public void sendGestureToDatabase()
    {
        buttonAudioSource.PlayOneShot(buttonClickSound);

        string gestureName = GestureInputText.Trim();

        if (!string.IsNullOrEmpty(gestureName))
        {
            StartCoroutine(createGesture(gestureName));
        }
        else
        {
            errorModalDialog.showErrorDialog(OkEvent);
        }

        GestureInputText = "";
    }