Esempio n. 1
0
 public void GrabEnd(CustomHand hand)
 {
     DettachHand(hand);
     if (!leftHand && !rightHand)
     {
         saveVariables.LoadProperty(MyRigidbody);
     }
     if (pickReleaseOnce)
     {
         if (!rightHand && !leftHand)
         {
             ReleaseHand.Invoke();                 //sound
         }
     }
     else
     {
         ReleaseHand.Invoke();
     }
     if (leftHand)
     {
         leftHand.SetBlendPose(1);
         leftHand.SetEndFramePos();
     }
     if (rightHand)
     {
         rightHand.SetBlendPose(1);
         rightHand.SetEndFramePos();
     }
 }
Esempio n. 2
0
    public void GrabEnd(CustomHand hand)
    {
        // powerSteering stuff

        //
        DettachHand(hand);
        ReleaseHand.Invoke();
    }
Esempio n. 3
0
 public void GrabEnd(CustomHand hand)
 {
     DettachHand(hand);
     if (returnToZero)
     {
         enabled = true;
     }
     ReleaseHand.Invoke();
 }
Esempio n. 4
0
    void GrabEnd(CustomHand hand)
    {
        //if ((rightHand || leftHand) && GetMyGrabPoserTransform(hand))
        //{
        MoveObject.localPosition = new Vector3(0, 0, StartButtonPosition);
        DettachHand(hand);

        GetComponentInChildren <MeshRenderer>().material.color = Color.green;
        //}
        ReleaseHand.Invoke();
    }
Esempio n. 5
0
 public void GrabEnd(CustomHand hand)
 {
     onOrOff = angle < 0;
     if (onOrOff)
     {
         SwithOn.Invoke();
     }
     else
     {
         SwithOff.Invoke();
     }
     MoveObject.localEulerAngles = new Vector3(angle < 0?Switch.x:Switch.y, 0);
     DettachHand(hand);
     ReleaseHand.Invoke();
 }
Esempio n. 6
0
    public void GrabEndCustom(CustomHand hand)
    {
        DettachHand(hand);

        if (!leftHand && !rightHand)
        {
            saveVariables.LoadProperty(MyRigidbody);
        }
        if (pickReleaseOnce)
        {
            if (!rightHand && !leftHand)
            {
                ReleaseHand.Invoke();                 //sound
            }
        }
        else
        {
            ReleaseHand.Invoke();
        }
    }
Esempio n. 7
0
 private void OnReleaseHand() => ReleaseHand?.Invoke();
Esempio n. 8
0
 public void GrabEnd(CustomHand hand)
 {
     DettachHand(hand);
     ReleaseHand.Invoke();
 }