void Start() { handType = (HandTypeBase)Instantiate(handType, transform.position, Quaternion.identity); handType.SetOwner(this); handType.name = isRightHand ? "rightHand" : "leftHand"; renderer.enabled = false; // Disable visual indicator for Unityhand if (initialLeapObject) { initialLeapObject.gameObject.SetActive(true); handType.ChangeState(initialLeapObject.Activate(handType)); } originalPos = transform.localPosition; detectedFingers = new FingerDetection(this); InstantiateFingers(); Contro = GameObject.Find("Controller"); }
void Start() { handType = (HandTypeBase)Instantiate(handType, transform.position, Quaternion.identity); handType.SetOwner(this); handType.name = isRightHand ? "rightHand" : "leftHand"; renderer.enabled = false; // Disable visual indicator for Unityhand if (initialLeapObject) { initialLeapObject.gameObject.SetActive(true); handType.ChangeState(initialLeapObject.Activate(handType)); } originalPos = transform.localPosition; detectedFingers = new FingerDetection(this); InstantiateFingers(); }