Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 public ResourcesBundle(WinAssetManager assetManager, AssetParameter parameter, byte[] assetObject)
 {
     m_AssetManager   = assetManager;
     this.m_Parameter = parameter;
     this.assetObject = assetObject;
     m_AssetManager.CompleteLoad(this);
 }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="needs"></param>
        /// <returns></returns>
        private IEnumerator LoadWinAssetsBundle(AssetParameter[] needs, WinAssetManager winAssetManager)
        {
            foreach (AssetParameter par in needs)
            {
                string          path        = GetPath(par);
                byte[]          assetObject = File.ReadAllBytes(path);
                ResourcesBundle tem         = new ResourcesBundle(winAssetManager, par, assetObject);
                yield return(tem);
            }
            yield return(null);

            syLoadUnityAssetsBundle = null;
        }