// ------------------------------------------- /* * PlayInVRPressed */ private void PlayInVRPressed() { SoundsController.Instance.PlaySingleSound(SoundsConfiguration.SOUND_SELECTION_FX); CardboardLoaderVR.Instance.SaveEnableCardboard(true); #if ENABLE_GOOGLE_ARCORE if (!MenuScreenController.Instance.AskToEnableBackgroundARCore || (MultiplayerConfiguration.LoadGoogleARCore(-1) != MultiplayerConfiguration.GOOGLE_ARCORE_ENABLED)) { FinalLoadGameWithAssets(); } else { if (MenuScreenController.Instance.AlphaAnimationNameStack != -1) { UIEventController.Instance.DispatchUIEvent(UIEventController.EVENT_SCREENMANAGER_OPEN_LAYER_GENERIC_SCREEN, -1, new List <object> { ScreenController.ANIMATION_ALPHA, 0f, 1f, MenuScreenController.Instance.AlphaAnimationNameStack }, ScreenEnableBackground.SCREEN_NAME, UIScreenTypePreviousAction.DESTROY_ALL_SCREENS, false, m_nameOfScreen); } else { UIEventController.Instance.DispatchUIEvent(UIEventController.EVENT_SCREENMANAGER_OPEN_GENERIC_SCREEN, ScreenEnableBackground.SCREEN_NAME, UIScreenTypePreviousAction.DESTROY_ALL_SCREENS, false, m_nameOfScreen); } } #else if (MenuScreenController.Instance.RequestPermissionAssetBundleDownload) { RequestDownloadAssetBundle(); } else { FinalLoadGameWithAssets(); } #endif }