async UniTaskVoid Init() { var localUrl = $"file://{Path.GetFullPath(Path.Combine(Application.dataPath, localBaseCfgURL))}{Path.DirectorySeparatorChar}"; #if !UNITY_EDITOR useRemoteConfigs = true; #endif // PlayerPrefs.SetString(_baseUrlKey, useRemoteConfigs ? remoteBaseCfgURL : localUrl); // PlayerPrefs.SetString(_charCfgUrlKey, charactersCfgURL); // PlayerPrefs.SetString(_userCfgUrlKey, userCfgURL); // PlayerPrefs.SetString(_cosmeticsCfgUrlKey, cosmeticsCfgURL); // PlayerPrefs.SetString(_questsCfgUrlKey, questsCfgURL); // PlayerPrefs.SetString(_lootboxCfgUrlKey, lootboxesCfgURL); // PlayerPrefs.Save(); // await LoadConfigs(); #if UNITY_EDITOR || UNITY_STANDALONE_WIN { //GraphicsSettings.renderPipelineAsset = Resources.Load<RenderPipelineAsset>("Settings/LWRP-HighQuality"); } #else { //TODO: graphics settings var screenWidth = Screen.currentResolution.width; var screenHeight = Screen.currentResolution.height; Screen.SetResolution(screenWidth / 2, screenHeight / 2, true); //GraphicsSettings.renderPipelineAsset = Resources.Load<RenderPipelineAsset>("Settings/LWRP-MediumQuality"); Application.targetFrameRate = targetFrameRate; //QualitySettings.vSyncCount = 0; } #endif var console = Instantiate(debugConsolePrefab); try { await BundlesManagerUtils.ResourcesUpToDate(updateBundles); } catch (Exception e) { UIManager.Popup <InfoPopup>().Text("Can't update data").Show(); } finally { GameFlow.Init(); GameFlow.MainMenu(); //await GameFlow.Login(await LocalUser.GetLogin(), LocalUser.GetPassword()); } }