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 = ""; }
public void sendGestureToDatabase() { buttonAudioSource.PlayOneShot(buttonClickSound); string gestureName = GestureInputText.Trim(); if (!string.IsNullOrEmpty(gestureName)) { StartCoroutine(createGesture(gestureName)); } else { errorModalDialog.showErrorDialog(OkEvent); } GestureInputText = ""; }