示例#1
0
 public void OnGrabClicked(VrgGrabber grabber)
 {
     if (grabClickCooldown_ > 0f)
     {
         return;
     }
     onGrabClicked.Invoke();
     grabClickCooldown_ = 0.1f;
 }
示例#2
0
        public int OnGrabbed(VrgGrabber grabber)
        {
            grabbers_.Add(grabber);

            velocity        = Vector3.zero;
            angularVelocity = Vector3.zero;

            onGrabbed.Invoke();

            return(grabId_++);
        }
示例#3
0
        public void OnReleased(VrgGrabber grabber)
        {
            grabbers_.Remove(grabber);

            onReleased.Invoke();
        }
示例#4
0
 void Awake()
 {
     grabber_ = GetComponent <VrgGrabber>();
     line_    = GetComponent <LineRenderer>();
 }