VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.Core.AVR_Controller.Awake ( )
inlineprotectedvirtual

Reimplemented from AVR.Core.AVR_Component.

Definition at line 34 of file AVR_Controller.cs.

34  {
35  base.Awake();
36  _inputManager = GetComponentInChildren<AVR_ControllerInputManager>();
37 
38  if (controllerNode==XRNode.LeftHand && !leftHandController) leftHandController = this;
39  if (controllerNode == XRNode.RightHand && !rightHandController) rightHandController = this;
40  }
static AVR_Controller leftHandController
Returns the AVR_Controller that represents the left hand controller (if it exists). This value depends on the controllerNode value and is not updated if this one is changed during runtime.
AVR_ControllerInputManager _inputManager
XRNode controllerNode
Which XRNode this object represents.
static AVR_Controller rightHandController
Returns the AVR_Controller that represents the right hand controller (if it exists). This value depends on the controllerNode value and is not updated if this one is changed during runtime.