public void OnGrabClicked(VrgGrabber grabber) { if (grabClickCooldown_ > 0f) { return; } onGrabClicked.Invoke(); grabClickCooldown_ = 0.1f; }
public int OnGrabbed(VrgGrabber grabber) { grabbers_.Add(grabber); velocity = Vector3.zero; angularVelocity = Vector3.zero; onGrabbed.Invoke(); return(grabId_++); }
public void OnReleased(VrgGrabber grabber) { grabbers_.Remove(grabber); onReleased.Invoke(); }
void Awake() { grabber_ = GetComponent <VrgGrabber>(); line_ = GetComponent <LineRenderer>(); }