//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public virtual void Awake() { vHandControl = gameObject.GetComponent<HandController>(); if ( vHandControl == null ) { throw new Exception("The HovercastLeapInputProvider component must be added to the "+ "same GameObject that contains the Leap Motion HandController component."); } vSettings = new LeapInputSettings(); UpdateSettings(); vSideL = new LeapInputSide(true, vSettings); vSideR = new LeapInputSide(false, vSettings); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public virtual void Awake() { vHandControl = gameObject.GetComponent <HandController>(); if (vHandControl == null) { throw new Exception("The HovercastLeapInputProvider component must be added to the " + "same GameObject that contains the Leap Motion HandController component."); } vSettings = new LeapInputSettings(); UpdateSettings(); vSideL = new LeapInputSide(true, vSettings); vSideR = new LeapInputSide(false, vSettings); }