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