Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.T))
     {
         if (controller.IsButtonPressed(VRTKSub.VRTK_ControllerEvents.ButtonAlias.TouchPad))
         {
             controller.Release(VRTKSub.VRTK_ControllerEvents.ButtonAlias.TouchPad);
         }
         else
         {
             controller.Press(VRTKSub.VRTK_ControllerEvents.ButtonAlias.TouchPad);
         }
     }
     if (Input.GetKeyDown(KeyCode.P))
     {
         StartCoroutine(controller.ClickTrigger());
     }
 }