Esempio n. 1
0
        /** 读取bundle信息 */
        public static void readBundleInfo(BytesReadStream stream)
        {
            LoadControl.clearResourceInfo();

            int len = stream.readInt();

            for (int i = 0; i < len; i++)
            {
                BundleInfoData data = new BundleInfoData();
                data.readBytes(stream);

                LoadControl.registBundleInfo(data);
            }

            len = stream.readInt();
            for (int i = 0; i < len; i++)
            {
                ResourceInfoData data = new ResourceInfoData();
                data.readBytes(stream);

                LoadControl.registResource(data.name, data.id, data.type);
            }

            LoadControl.registBundleOver();
        }
Esempio n. 2
0
    //steps

    protected virtual void stepLoadBundleInfo()
    {
        if (ShineSetting.localLoadWithOutBundle)
        {
            //直接标记完成
            LoadControl.registBundleOver();
            _stepTool.completeStep(LoadBundleInfo);
        }
        else
        {
            ResourceInfoControl.loadBundleInfo(() => { _stepTool.completeStep(LoadBundleInfo); });
        }
    }