private void Start() { instance = this; Initialize(); BlockTypes.Initialize(); textureMapper = new TextureMapper(); if (AudioManager.instance == null) { audioManager.Initialize(); } audioManager = AudioManager.instance; CreateTextures(); Structure.Initialize(); InitializeWorld(testWorld); ui.Initialize(); //_ColorHorizon, _ColorTop, _ColorBottom; Shader.SetGlobalColor("_SkyColorTop", new Color(0.7692239f, 0.7906416f, 0.8113208f, 1f)); Shader.SetGlobalColor("_SkyColorHorizon", new Color(0.3632075f, 0.6424405f, 1f, 1f)); Shader.SetGlobalColor("_SkyColorBottom", new Color(0.1632253f, 0.2146282f, 0.2641509f, 1f)); Shader.SetGlobalFloat("_MinLightLevel", gameSettings.minimumLightLevel); #if !UNITY_EDITOR showLoadingScreen = true; #endif if (showLoadingScreen) { isInStartup = true; world.chunkManager.isInStartup = true; ui.loadingScreen.gameObject.SetActive(true); } }