// Use this for initialization IEnumerator Start() { CUtils.DebugCastTime("LoadingFirst.Start"); //load manifest ResourcesLoader.Initialize(); CUtils.DebugCastTime("LoadingFirst.Initialize"); LogSys(); LoadFirstHelper.LoadFileManifest(sceneAssetBundleName, sceneName); yield return(null); #if UNITY_ANDROID //&& !UNITY_EDITOR if (ManifestManager.fileManifest == null) { //obb丢失 } #endif Hugula.Localization.language = PlayerPrefs.GetString("Language", Application.systemLanguage.ToString()); yield return(new WaitForLanguageHasBeenSet()); if (ManifestManager.CheckNeedUncompressStreamingAssets()) { // todo } LoadFirstHelper.BeginLoadScene(enterLua); }
// Start is called before the first frame update IEnumerator Start() { ResourcesLoader.Initialize(); ResourcesLoader.RegisterOverrideBaseAssetbundleURL(OverrideBaseAssetbundleURL); ManifestManager.LoadFileManifest(null); #if UNITY_ANDROID && !UNITY_EDITOR if (ManifestManager.fileManifest == null) { //todo obb丢失 } #endif #if UNITY_EDITOR yield return(null); LoadBeginScene(); #else return(LoadRemoteVersion()); #endif }
// Use this for initialization IEnumerator Start() { CUtils.DebugCastTime("LoadingFirst.Start"); //load manifest ResourcesLoader.Initialize(); CUtils.DebugCastTime("LoadingFirst.Initialize"); LogSys(); LoadFirstHelper.LoadFileManifest(); yield return(new WaitForSeconds(0.16f)); Hugula.Localization.language = PlayerPrefs.GetString("Language", Application.systemLanguage.ToString()); yield return(new WaitForLanguageHasBeenSet()); LoadFirstHelper.SetScene(sceneAssetBundleName, sceneName); if (ManifestManager.CheckNeedUncompressStreamingAssets()) { // todo } LoadFirstHelper.BeginLoadScene(); }