示例#1
0
    // public Text tips;
    // Use this for initialization
    IEnumerator Start()
    {
        CUtils.DebugCastTime("LoadingFirst.Start");
        //load manifest
        ResourcesLoader.Initialize();
        ResourcesLoader.RegisterOverrideBaseAssetbundleURL(LoadFirstHelper.OverrideBaseAssetbundleURL);
        HttpDnsHelper.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);
    }
示例#2
0
        // 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
        }