Exemplo n.º 1
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽数据管理∽-★-∽--------∽-★-∽------∽-★-∽--------//



        //-------∽-★-∽------∽-★-∽--------∽-★-∽加载相关∽-★-∽--------∽-★-∽------∽-★-∽--------//

        public Object LoadSync(string resId_, string resName_, object refer)
        {
            string url  = ResConfig.GetResUrl(resId_, resName_, ""); //去除后缀名
            Object data = AssetCache.me.LoadSync(url, refer);

            return(data);
        }
Exemplo n.º 2
0
        public void Init(string resId_, string resName_)
        {
            res_id   = resId_;
            res_name = resName_;

            ResCfgVo cfg = ResConfig.GetResCfg(resId_);

            m_url = ResConfig.GetResUrl(res_id, res_name, "");
        }
Exemplo n.º 3
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽创建相关∽-★-∽--------∽-★-∽------∽-★-∽--------//

        public GameObject LoadGameObj(string resId_, string resName_)
        {
            string url = ResConfig.GetResUrl(resId_, resName_, ""); //去除后缀名

            return(GameObjCache.me.LoadSync(url));
        }
Exemplo n.º 4
0
        public void LoadAsync_Prefab(string resId_, string resName_, CALLBACK_GO onComplete_, object refer)
        {
            string url = ResConfig.GetResUrl(resId_, resName_, ""); //去除后缀名

            GameObjCache.me.LoadAsync(url, onComplete_, refer);
        }