void Update() { if (MiddleVRInput.GetButtonDown(0)) { //FirePitch(); ActionQueue.Enqueue(FirePitch); } }
void Update() { if (MiddleVRInput.GetButtonDown((uint)mouseButtonIndex)) { if (_meshRend) { _meshRend.material.color = color; } Debug.Log("Pressed"); } if (MiddleVRInput.GetButton((uint)mouseButtonIndex)) { Debug.Log("Hold"); } if (MiddleVRInput.GetButtonUp((uint)mouseButtonIndex)) { Debug.Log("Released"); } }