Пример #1
0
 public void OnGripReleased(object sender, ControllerGripArgs e)
 {
     if (!handIsIn)
     {
         return;
     }
     Connect(sender, false, gameObject);
     Dropped?.Invoke(this);
 }
Пример #2
0
 public void OnGripPressed(object sender, ControllerGripArgs e)
 {
     if (!handIsIn)
     {
         return;
     }
     Connect(sender, true, gameObject);
     Grabbed?.Invoke(this);
 }