Example #1
0
    private static AssetBundle LoadObjectFromAssetFile(string assetName)
    {
        WWW         www    = new WWW(Statics.AssetBundleStoragePath + assetName);
        AssetBundle bundle = www.assetBundle;

        AssetsBag.GetInstance().Add(assetName, bundle);
        return(bundle);
    }
Example #2
0
    private static bool IfLoadedBefore(string assetName, out AssetBundle ao)
    {
        var alist = AssetsBag.GetInstance().GetAllLoadedAssetsName();

        foreach (var a in alist)
        {
            if (a.Equals(assetName))
            {
                ao = AssetsBag.GetInstance().GetAssetBundleByName(a);
                return(true);
            }
        }
        ao = null;
        return(false);
    }
Example #3
0
 private AssetsBag()
 {
     _instance = this;
 }
Example #4
0
 private AssetsBag()
 {
     _instance = this;
 }