public override void OnInspectorGUI() { DrawDefaultInspector(); VRRadialMenu rMenu = (VRRadialMenu)target; if (GUILayout.Button("Regenerate Buttons")) { rMenu.RegenerateButtons(); } }
void Init() { AddButtonEvent(backButton); AddButtonEvent(exitButton); AddButtonEvent(videoFilePath); AddButtonEvent(cameraScence1Button); AddButtonEvent(cameraScence2Button); AddButtonEvent(showVideoBackButton); if (rayCameraScene != null) { rayCameraScene.SetActive(false); } if (touchCameraScene != null) { touchCameraScene.SetActive(false); } if (sceneDescription != null) { InitDemoUI(); } if (rightEventController != null) { radiaMenu = rightEventController.transform.GetComponentInChildren <VRRadialMenu>(); teleport = rightEventController.GetComponent <VRTeleport>(); uiControllerManager = rightEventController.GetComponent <UIControllerManager>(); radiaMenu.transform.parent.gameObject.SetActive(false); uiControllerManager.enabled = false; teleport.enabled = false; if (rightTooltipController == null) { rightTooltipController = rightEventController.GetComponentInChildren <TooltipsManager>(); } } if (leftEventController != null) { if (leftTooltipController == null) { leftTooltipController = leftEventController.GetComponentInChildren <TooltipsManager>(); } } showVideoFilePath.SetActive(false); }
void Awake() { if (vrUIController == null) { vrUIController = this.transform.GetComponent <VRUIController>(); } if (tooltipsManager == null) { tooltipsManager = this.GetComponent <TooltipsManager>(); } if (eventController == null) { eventController = this.GetComponent <VREventController>(); } isCamera = false; Application.runInBackground = true; menu = this.transform.GetComponentInChildren <VRRadialMenu>(); if (teleport == null) { teleport = this.GetComponent <VRTeleport>(); } }