// Update is called once per frame void Update() { if (_tvButton.selected && MyInputManager.TriggerButtonPressed(_tvButton.handIndicator) && !isSelected) { isSelected = true; if (!isEnter && !isUndo && screenText.text.Length < 4) { screenText.text += value; } if (isEnter && !isUndo && vipArea) { vipArea.allowAccess(screenText.text, true); } if (!isEnter && isUndo && screenText.text.Length > 0) { screenText.text = screenText.text.Remove(screenText.text.Length - 1); } } if (!_tvButton.selected && isSelected) { isSelected = false; } }
// Update is called once per frame void Update() { if (tvButton.selected && MyInputManager.TriggerButtonPressed(tvButton.handIndicator)) { if (forward) { if (i >= materials.Length) { i = 0; } ChangePaint(materials[i++]); } else { if (i < 0) { i = materials.Length - 1; } ChangePaint(materials[i--]); } } else { calledBefore = false; } if (Vector3.Distance(cam.transform.position, MyInputManager.leftHandController.position) > 5) { cam.enabled = false; } else { cam.enabled = true; } }
// Update is called once per frame void Update() { if (tvButton.selected && MyInputManager.TriggerButtonPressed(tvButton.handIndicator)) { ApplyPaint(currentMat); } if (!tvButton.selected || !MyInputManager.TriggerButtonPressed(tvButton.handIndicator)) { calledBefore = false; } }
// Update is called once per frame void Update() { if (_tvButton.selected && !fastForwarding && MyInputManager.TriggerButtonPressed('l')) { fastForwarding = true; _vp.playbackSpeed = 10; } if (!_tvButton.selected && fastForwarding) { fastForwarding = false; _vp.playbackSpeed = 1; } }
// Update is called once per frame void Update() { if (MyInputManager.TriggerButtonPressed('l')) { if (_tvButton.selected && !muteToggle) { muteToggle = true; _vp.SetDirectAudioMute(0, muted = !muted); } if (!_tvButton.selected && muteToggle) { muteToggle = false; } } }
// Update is called once per frame void Update() { if (_tvButton.selected) { //Debug.Log("here"); if (MyInputManager.TriggerButtonPressed(_tvButton.handIndicator)) { if (isPlaying) { vp.Pause(); isPlaying = false; } else { vp.Play(); isPlaying = true; } StartCoroutine(WaitForMilliseconds(500)); } } }