// Update is called once per frame void Update() { //left.DrawDebugRayFingers(); //right.DrawDebugRayFingers(); if (right.hg == HandGesture.Point) { Ray r = right.GetFingerRay(Finger.IndexFinger, FingerPart.DistalPhalanges); Debug.DrawRay(r.origin, r.direction, Color.red); } }
// Update is called once per frame void Update() { //left.DrawDebugRayFingers(); //right.DrawDebugRayFingers(); if (right.hg == HandGesture.Point) { Ray r = right.GetFingerRay(Finger.IndexFinger, FingerPart.DistalPhalanges); Debug.DrawRay(r.origin, r.direction, Color.red); GameObject.Find("fishing_boat").GetComponent <boatMoving>().PointBoatPosition(r); } }