Exemple #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);
        }
Exemple #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, "");
        }
Exemple #3
0
        //-------∽-★-∽------∽-★-∽--------∽-★-∽创建相关∽-★-∽--------∽-★-∽------∽-★-∽--------//

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

            return(GameObjCache.me.LoadSync(url));
        }
Exemple #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);
        }
Exemple #5
0
 //资源注册
 protected virtual void RegResource()
 {
     ResConfig.AddResCfg(CC_RES_ID.RES_REG);
 }