// Use this for initialization
 void Start()
 {
     Hand = this.gameObject.GetComponentInParent <VRInputCtrl>();
 }
示例#2
0
    private void VibrateController(GameObject grabber)
    {
        VRInputCtrl device = grabber.GetComponentInParent <VRInputCtrl>();

        device.TriggerHapticFeedback(1000, 0.1f);
    }