public void OnHandsDetected(HandAbstraction hands) { Initialise(); leftHand = hands.GetLeftHand(); rightHand = hands.GetRightHand(); }
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(); }
void Start() { hands = GameObject.FindObjectOfType(typeof(HandAbstraction)) as HandAbstraction; }