예제 #1
0
 public void Appear(Chirality whichHand)
 {
     self.Show(0, 0.1f);
     currentlyHoveringHand = HandUIManager.GetHand(whichHand);
     currentOffset         = whichHand == Chirality.Right ? pinchPointOffsetR : pinchPointOffsetL;
     shown = true;
 }
예제 #2
0
    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);
    }
예제 #3
0
    void Start()
    {
        initScale = transform.localScale;
        circle    = GetComponent <CircleLine>();
        hand      = HandUIManager.GetHand(whichHand);
        uiColor   = GetComponent <UIColor>();

        minY = transform.localPosition.y;

        if (this.enabled)
        {
            Hide();
        }
    }
예제 #4
0
    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;
    }
예제 #5
0
    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();
    }
예제 #6
0
 private void Start()
 {
     hand = HandUIManager.GetHand(whichHand);
     Hide();
 }