static public void SetupManagers() { MonoBehaviour root = null; var gameManager = root.EnsureChildWithComponent <GameManager>(); var configurationManager = gameManager.EnsureChildWithComponent <ConfigurationManager>(); var worldManager = gameManager.EnsureChildWithComponent <WorldManager>(); var timeManager = worldManager.EnsureChildWithComponent <TimeManager>(); var weatherManager = worldManager.EnsureChildWithComponent <WeatherManager>(); var utilitiesManager = gameManager.EnsureChildWithComponent <UtilitiesManager>(); var uiManager = gameManager.EnsureChildWithComponent <UiManager>(); var artsManager = gameManager.EnsureChildWithComponent <ArtsManager>(); var cinematographyManager = artsManager.EnsureChildWithComponent <CinematographyManager>(); var photographyManager = artsManager.EnsureChildWithComponent <PhotographyManager>(); var monetizationManager = gameManager.EnsureChildWithComponent <MonetizationManager>(); var playerManager = gameManager.EnsureChildWithComponent <PlayerManager>(); }