private void Awake() { pointer = GetComponent <VRTK_Pointer>(); GetComponent <VRTK_Pointer>().PointerStateValid += OnPointerStateValid; GetComponent <VRTK_Pointer>().PointerStateInvalid += OnPointerStateInvalid; selectionEventArgs = new ModuleSelectionEventArgs(null); }
private void OnPointerSelection(object sender, ModuleSelectionEventArgs e) { OnModuleSelected(e.SelectedModule); }