private void Start() { FileLoaded = false; SavedPath = ""; RecordingDirectory = Application.persistentDataPath + "/Recordings/"; errorModalDialog = GetComponent <ModalDialog>(); recordingFileInputFieldPlaceHolderText = recordingFileInputField.placeholder.GetComponent <Text>(); toggleableObject = GetComponent <ToggleableObject>(); backgroundMaterial = background.GetComponent <Renderer>().material; buttonAudioSource = GetComponent <AudioSource>(); lastActiveViewState = true; }
private void Start() { leapControllerProvider = leapController.GetComponent <LeapServiceProvider>(); gestureInputFieldPlaceHolderText = gestureInputField.placeholder.GetComponent <Text>(); buttonAudioSource = GetComponent <AudioSource>(); toggleableObject = GetComponent <ToggleableObject>(); lastActiveViewState = true; isGatheringFrames = false; recordingTimer = recordingTime; gestureFrames = new List <Frame>(); if (controlsText != null) { controlsText.text = header + "\n\n" + takeSnapShotKey + " - Take a snapshot\n" + toggleableObject.toggleKey + " - Toggle view\n" + resetSnapshotKey + " - Reset Snapshot taken"; } }