void Awake() { vrIteraction = this.transform.GetComponent <VIVE_Interaction>(); eventCtrl = this.GetComponent <VIVE_EventCtrl>(); radiaMenu = this.transform.GetComponentInChildren <VIVE_RadialMenu>(); tooltipController = this.GetComponentInChildren <VIVE_TooltipManager>(); teleport = this.GetComponent <VIVE_Teleport>(); }
public override void OnInspectorGUI() { DrawDefaultInspector(); VIVE_RadialMenu radialMenu = (VIVE_RadialMenu)target; if (GUILayout.Button("Regenerate Buttons")) { radialMenu.RegenerateButtons(); } }