예제 #1
0
 private void Update()
 {
     if (GetComponent <VRTK_ControllerEvents>().triggerPressed)
     {
         if ((_headset.GetComponent <VRTK_Pointer>().IsStateValid() || GetComponent <VRTK_Pointer>().IsStateValid()) && _lastHit != null)
         {
             CubeController.CubeRemoved(_lastHit);
             Destroy(_lastHit);
         }
     }
 }