Esempio n. 1
0
        static public void InitializeMaifest()
        {
#if UNITY_EDITOR
            m_BaseDownloadingURL = Application.streamingAssetsPath + "/" + SFMisc.GetPlatformName() + "/";
#else
            m_BaseDownloadingURL = Application.persistentDataPath + "/" + SFMisc.GetPlatformName() + "/";
            //m_BaseDownloadingURL = Application.persistentDataPath + "/Android/";
#endif

            string path = m_BaseDownloadingURL + SFMisc.GetPlatformName();

            //Debug.LogError("--------------------------------------------------------------   "+path);

            AssetBundle ab = AssetBundle.LoadFromFile(path);

            if (ab != null)
            {
                AssetBundleManifestObject = ab.LoadAsset <AssetBundleManifest>("AssetBundleManifest");
            }
            else
            {
                if (Debug.developerConsoleVisible)
                {
                    Debug.LogError("--------------AssetBundleManifest -----------");
                }
            }
        }
Esempio n. 2
0
 static public AssetBundleLoadManifestOperation Initialize()
 {
     m_BaseDownloadingURL = GetStreamingAssetsPath() + SFMisc.GetPlatformName() + "/";
     if (Debug.developerConsoleVisible)
     {
         Debug.Log(m_BaseDownloadingURL);
     }
     return(Initialize(SFMisc.GetPlatformName()));
 }