private void OnApplicationQuit() { #if !UNITY_EDITOR System.Diagnostics.Process.GetCurrentProcess().Kill(); #endif MinimumWindowSize.Reset(); }
private IEnumerator Start() { yield return(null); MinimumWindowSize.Set(1472, 828); if (m_currentExperienceType == ExperienceType.HOME) { Screen.SetResolution(1472, 828, FullScreenMode.Windowed); } yield return(null); if (m_currentExperienceType == ExperienceType.HOME) { OpenLoginPage(); } yield return(new WaitForSeconds(3)); if (DateTime.Now > new DateTime(2020, 11, 6)) { m_uiEngine.DisplayProgress("APP VALIDITY EXPIRED.\n\nPlease contact administrator for support.", true); } #if LOCAL_TEST if (CurrentExperience != ExperienceType.HOME) { AllPlatformDependenciesLoaded(null, EventArgs.Empty); } #endif }
public static double ping = 0d; // ping in ms // Unity Events: private void Awake() // Called on every new scene which has its own Master Manager { KeepPersistentStatus(); #region WINDOWS SPECIFIC: DO NOT REMOVE // Clamp the min window size on Windows platform. if (Application.platform == RuntimePlatform.WindowsPlayer) { MinimumWindowSize.Set(GameConstants.MIN_WINDOW_WIDTH, GameConstants.MIN_WINDOW_HEIGHT); } #endregion }
private void OnApplicationQuit() { FullScreenMode screenMode = userData.GetScreenMode(); if (screenMode == FullScreenMode.Windowed) { userData.SetWindowWidth(Screen.width); userData.SetWindowHeight(Screen.height); } SaveSettings(); #region WINDOWS SPECIFIC: DO NOT REMOVE if (Application.platform == RuntimePlatform.WindowsPlayer) { MinimumWindowSize.Reset(); } #endregion }
private IEnumerator Start() { yield return(null); MinimumWindowSize.Set(1472, 828); yield return(null); #if !UNITY_EDITOR XRSettings.LoadDeviceByName(""); yield return(null); XRSettings.enabled = false; #endif Color titleColor = m_title.color; Color clearTitleColor = new Color(titleColor.r, titleColor.g, titleColor.b, 0); m_title.color = clearTitleColor; m_border1.color = clearTitleColor; m_border2.color = clearTitleColor; yield return(new WaitForSeconds(3)); m_title.DOColor(titleColor, 1.5f); m_border1.DOColor(titleColor, 1.5f); m_border2.DOColor(titleColor, 1.5f); yield return(new WaitForSeconds(2)); m_title.DOColor(Color.clear, 1.5f); m_border1.DOColor(Color.clear, 1.5f); m_border2.DOColor(Color.clear, 1.5f); yield return(new WaitForSeconds(1.5f)); m_loadingText.gameObject.SetActive(true); yield return(null); var ao = SceneManager.LoadSceneAsync("Home", LoadSceneMode.Single); ao.allowSceneActivation = false; while (ao.progress < .9f) { yield return(null); } ao.allowSceneActivation = true; }