/*private bool _graspButtonDown = false; * private bool _graspButtonUp = false; * private float _graspButtonDownSlopTimer = 0F;*/ private void Awake() { SkeletalControllerHand[] controllerHands = FindObjectsOfType <SkeletalControllerHand>(); foreach (SkeletalControllerHand controllerHand in controllerHands) { if (controllerHand.IsLeft == _isLeft) { skeletalControllerHand = controllerHand; break; } } steamVRRemapper = skeletalControllerHand.GetComponent <SteamVRRemapper>(); _graspManipulatorPoints.Add(position); disableContactTimer = disableContactAfterGraspTime; _contactBones = new ContactBone[] { }; switcher = FindObjectOfType <ProviderSwitcher>(); }
private void Awake() { SkeletalControllerHand[] controllerHands = FindObjectsOfType <SkeletalControllerHand>(); foreach (SkeletalControllerHand controllerHand in controllerHands) { if (controllerHand.IsLeft == _isLeft) { skeletalControllerHand = controllerHand; break; } } steamVRRemapper = skeletalControllerHand.GetComponent <SteamVRRemapper>(); _graspManipulatorPoints.Add(position); _contactBones = new ContactBone[] { }; primaryHoverPoints.Add(skeletalControllerHand.IndexMetacarpal.GetChild(0).GetChild(0).GetChild(0)); userRig = FindObjectOfType <UserRig>(); }