private void Init() { if (mInited) { return; } mInited = true; mWaitLoadBundleList = new WaitingList(); mBundleList = new BundleVector(); mBundleTaskList = new LoadTaskVector(); LoadResInfo(); }
public void Init(string _appname, string _persistenpath, string _streamingpath, string _resources) { if (mInited) { return; } mInited = true; mPersistentDataPath = _persistenpath; mStreamingDataPath = _streamingpath; mResourcesPath = string.Format("{0}{1}", _resources, GameCore.ResDataPath).Replace("//", "/"); SetAppName(_appname); mWaitLoadBundleList = new WaitingList(); mBundleList = new BundleVector(); mBundleTaskList = new LoadTaskVector(); }