void Start() { try { GameObject databaseGameobject = GameObject.Find("Database"); db = databaseGameobject.GetComponent <Database>(); } catch (System.NullReferenceException) { SceneManager.LoadScene("LoadingScene"); } UIController = GetComponent <MainMenuUIController>(); streetController = GetComponent <StreetCanvasController>(); windowController = GetComponent <WindowCanvasController>(); browseStrainsWallCanvasController = GetComponent <BrowseStrainsWallCanvasController>(); browseBongsWallCanvasController = GetComponent <BrowseBongsWallCanvasController>(); ResetScene(); mainCamera.GetComponent <MainMenuCamera>().Initialize(); }