Exemple #1
0
 private void OnTriggerUsed(object sender, TriggerValueArgs e)
 {
     if (e.value > 0.3f && !triggerClicked)
     {
         if (_isHolding)
         {
             UpdateGrab(currentlyGrabbing);
         }
         else if (hoveredHandle != null)
         {
             Grab(hoveredHandle);
         }
     }
     else
     {
         if (currentlyGrabbing != null)
         {
             Release();
         }
     }
 }
 private void OnTriggerUsed(object sender, TriggerValueArgs e)
 {
 }