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(); } }
public void GrabEnd(CustomHand hand) { // powerSteering stuff // DettachHand(hand); ReleaseHand.Invoke(); }
public void GrabEnd(CustomHand hand) { DettachHand(hand); if (returnToZero) { enabled = true; } ReleaseHand.Invoke(); }
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(); }
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(); }
public void GrabEndCustom(CustomHand hand) { DettachHand(hand); if (!leftHand && !rightHand) { saveVariables.LoadProperty(MyRigidbody); } if (pickReleaseOnce) { if (!rightHand && !leftHand) { ReleaseHand.Invoke(); //sound } } else { ReleaseHand.Invoke(); } }
private void OnReleaseHand() => ReleaseHand?.Invoke();
public void GrabEnd(CustomHand hand) { DettachHand(hand); ReleaseHand.Invoke(); }