public void Appear(Chirality whichHand) { self.Show(0, 0.1f); currentlyHoveringHand = HandUIManager.GetHand(whichHand); currentOffset = whichHand == Chirality.Right ? pinchPointOffsetR : pinchPointOffsetL; shown = true; }
private void OnEnable() { hand = HandUIManager.GetHand(whichHand); pinch = HandUIManager.GetPinchGesture(whichHand); self = GetComponent <UIEntity>(); hrt = keyboardPlane.GetComponent <HandRaycastTarget>(); pinch.OnOpen += OnPinch; self.Hide(0, 0.05f); }
void Start() { initScale = transform.localScale; circle = GetComponent <CircleLine>(); hand = HandUIManager.GetHand(whichHand); uiColor = GetComponent <UIColor>(); minY = transform.localPosition.y; if (this.enabled) { Hide(); } }
private void Start() { head = HandUIManager.head; hand = HandUIManager.GetHand(whichHand); pg = HandUIManager.GetPinchGesture(whichHand); // AirTap init, getting index and wrist postions fPos = hand.leapHand.GetIndex().TipPosition.ToVector3(); fPrevPos = fPos; wPos = hand.leapHand.WristPosition.ToVector3(); wPrevPos = wPos; }
void Start() { line = GetComponent <LineRenderer>(); if (transform.parent.GetComponent <HandRaycast>()) { hr = transform.parent.GetComponent <HandRaycast>(); hand = HandUIManager.GetHand(hr.whichHand); } else { HandUIManager.Warn("HandRaycast not found", this); } DimDown(); Hide(); }
private void Start() { hand = HandUIManager.GetHand(whichHand); Hide(); }