//--初始化部分--// public static void init() { initBase(); _versionPath = getPersistentPath(ShineGlobal.versionInfoPath, false); _loader = new ShineLoader(); _loaders = new ShineLoader[LoadNum]; _loadings = new ResourceSaveData[LoadNum]; for (int i = 0; i < LoadNum; i++) { initLoader(i); } _frameIndex = TimeDriver.instance.setFrame(onFrame); _versionStream = new BytesWriteStream(); }
private static void initLoader(int index) { (_loaders[index] = new ShineLoader()).setCompleteCall(() => onLoaderComplete(index)); }