private void Start() { _handMenuManager = FindObjectOfType <HandMenuManager>(); _globalMenuManager = FindObjectOfType <GlobalMenuManager>(); _menuParent.SetActive(false); IsCurrentlyVisible = false; _resetButton.SetActive(false); _backButton.SetActive(false); _attachToControllerSolver = GetComponent <AttachToControllerSolver>(); _attachToControllerSolver.TrackingLost += OnTrackingLost; _cameraTransform = Camera.main.transform; }
private void Start() { _desktopButtonsManager = GetComponent <DesktopMenuManager>(); _ggvMenuManager = GetComponent <GGVMenuManager>(); _handMenuManager = GetComponent <HandMenuManager>(); _aboutSlate = FindObjectOfType <AboutSlate>(); BackButtonNeedsShowing = false; ResetButtonNeedsShowing = false; UpdateMenuState(false); if (GalaxyExplorerManager.Instance.ViewLoaderScript) { GalaxyExplorerManager.Instance.ViewLoaderScript.OnSceneIsLoaded += OnSceneIsLoaded; GalaxyExplorerManager.Instance.ViewLoaderScript.OnLoadNewScene += OnLoadNewScene; } }