Exemple #1
0
        public void OnHandsDetected(HandAbstraction hands)
        {
            Initialise();

            leftHand  = hands.GetLeftHand();
            rightHand = hands.GetRightHand();
        }
Exemple #2
0
 void Start()
 {
     if (onlyInDebugBuilds && !Debug.isDebugBuild)
     {
         GameObject.Destroy(this.gameObject);
     }
     else
     {
         this.handAbstraction = GetComponentInChildren <HandAbstraction> ();
     }
 }
        public void OnHandsDetected(HandAbstraction hands, Camera eventCamera)
        {
            targetHand = isLeft ? hands.GetLeftHand() : hands.GetRightHand();

            this.transform.localScale = new Vector3(0.002f * panelScale, 0.002f * panelScale, 0.002f * panelScale);

            if (canvas != null)
            {
                canvas.worldCamera = eventCamera;
            }

            TrackTargetHand();
        }
Exemple #4
0
 void Start()
 {
     hands = GameObject.FindObjectOfType(typeof(HandAbstraction)) as HandAbstraction;
 }