Exemplo n.º 1
0
    // 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);
    }
Exemplo n.º 2
0
    // 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();
    }