void Awake() { enabled = false; assetsStore = gameObject.GetComponent <CarpAssetsStore>(); willRequest = new List <CarpDefineAB>(); DontDestroyOnLoad(this); }
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(); }
void Awake() { enabled = false; assetsStore = gameObject.GetComponent <CarpAssetsStore>(); }