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