// Update is called once per frame void Update() { hands = GetComponentInChildren <ControllerManagerSample>(); if (hands != null) { Debug.Log("Find"); } else { Debug.Log("notFind"); } }
private void Start() { __gameController = GameController.getInstance(); __controllerManager = GetComponentInChildren <ControllerManagerSample>(); ViveInput.AddListenerEx( HandRole.LeftHand, ControllerButton.FullTrigger, ButtonEventType.Down, __onLeftTriggerDown); ViveInput.AddListenerEx( HandRole.RightHand, ControllerButton.FullTrigger, ButtonEventType.Down, __onRightTriggerDown); ViveInput.AddListenerEx( jumpHandRole, jumpControllerButton, ButtonEventType.Down, __onJumpKeyDown); }