示例#1
0
 // Start is called before the first frame update
 void Awake()
 {
     _grabObjController = gameObject.GetComponent <GrabObjController>();
     _forceManipulation = gameObject.GetComponent <ForceManipulation>();
     _forceGesture      = gameObject.GetComponent <ForceGestureHand>();
     _climbHand         = gameObject.GetComponent <ClimbHand>();
     HandSource         = _grabObjController.HandSource;
 }
 // Start is called before the first frame update
 void Awake()
 {
     if (!_playerController)
     {
         _playerController = GetComponent <VRPlayerController>();
     }
     if (!_rightHand)
     {
         _rightHand = _playerController.RightHand;
     }
     if (!_leftHand)
     {
         _leftHand = _playerController.LeftHand;
     }
     _rightGestureHand = _rightHand.GetComponent <ForceGestureHand>();
     _leftGestureHand  = _leftHand.GetComponent <ForceGestureHand>();
     _rightClimbHand   = _rightHand.GetComponent <ClimbHand>();
     _leftClimbHand    = _leftHand.GetComponent <ClimbHand>();
 }