Example #1
0
 void Awake()
 {
     enabled     = false;
     assetsStore = gameObject.GetComponent <CarpAssetsStore>();
     willRequest = new List <CarpDefineAB>();
     DontDestroyOnLoad(this);
 }
Example #2
0
    public void init(string assetPath, bool abAssetType, string manifestName = "")
    {
        CarpAssetDefine.assetPath    = assetPath;
        CarpAssetDefine.manifestName = manifestName;
        assetsStore = gameObject.AddComponent <CarpAssetsStore>();

        if (abAssetType)
        {
            assetsLoad = gameObject.AddComponent <CarpAssetBundleLoad>();
        }
        else
        {
            assetsLoad = gameObject.AddComponent <CarpResourcesLoad>();
        }

        carpInstantiate = gameObject.AddComponent <CarpInstantiate>();
        assetsLoad.init();
    }
Example #3
0
 void Awake()
 {
     enabled     = false;
     assetsStore = gameObject.GetComponent <CarpAssetsStore>();
 }