void Awake() { // Find and assign references cameraTransition = FindObjectOfType <CameraTransition>(); charController = FindObjectOfType <PlayerController>(); accountManager = FindObjectOfType <AccountManager>(); loginPanel = FindObjectOfType <LoginPanel>(); menuSound = GetComponent <AudioSource>(); // UI mainMenuGraphics = mainMenuGO.GetComponentsInChildren <Graphic>(); mainMenuButtons = mainMenuGO.GetComponentsInChildren <Button>(); loginPanelGraphics = loginPanel.GetComponentsInChildren <Graphic>(); loggedStatusGraphics = loggedStatusPanelGO.GetComponentsInChildren <Graphic>(); continueButtonGO = GetComponentInChildren <ContinueGame>().gameObject; }