void Update() { if (Controller.GetPressDown(Valve.VR.EVRButtonId.k_EButton_SteamVR_Trigger)) { colorer.SetFunctional(true); } if (Controller.GetPressUp(Valve.VR.EVRButtonId.k_EButton_SteamVR_Trigger)) { colorer.SetFunctional(false); } if (Controller.GetPressDown(Valve.VR.EVRButtonId.k_EButton_ApplicationMenu)) { MenuPressed = true; } if (Controller.GetPressUp(Valve.VR.EVRButtonId.k_EButton_ApplicationMenu)) { MenuPressed = false; } if (Controller.GetTouch(Valve.VR.EVRButtonId.k_EButton_SteamVR_Touchpad)) { float axis_y = Controller.GetAxis(Valve.VR.EVRButtonId.k_EButton_Axis0).y; colorer.Scale(axis_y * scaleSpeed * Time.deltaTime); float axis_x = Controller.GetAxis(Valve.VR.EVRButtonId.k_EButton_Axis0).x; colorer.ChangeColor(axis_x * scaleHue * Time.deltaTime); } }