private void Start() { AboutMaterial.SetFloat("_TransitionAlpha", 0f); _aboutIsActive = false; _hyperlinkRenderers = SlateContentParent.GetComponentsInChildren <Renderer>(); SetHyperlinksTransitionAplha((0f)); _zoomInOut = FindObjectOfType <ZoomInOut>(); transform.localScale = transform.localScale * GalaxyExplorerManager.SlateScaleFactor; MixedRealityToolkit.InputSystem.Register(gameObject); }
private void Start() { if (GalaxyExplorerManager.Instance.ViewLoaderScript == null) { Debug.LogError("TransitionManager: No ViewLoader found - unable to process transitions."); return; } GalaxyExplorerManager.Instance.GeFadeManager.OnFadeComplete += OnFadeComplete; ZoomInOutBehaviour = FindObjectOfType <ZoomInOut>(); movingAudio = FindObjectOfType <MovableAudioSource>(); transformSource = FindObjectOfType <TransformSource>(); defaultSceneRotation = transformSource.transform.rotation; defaultSceneScale = transformSource.transform.localScale; }