//-------∽-★-∽------∽-★-∽--------∽-★-∽数据管理∽-★-∽--------∽-★-∽------∽-★-∽--------// //-------∽-★-∽------∽-★-∽--------∽-★-∽加载相关∽-★-∽--------∽-★-∽------∽-★-∽--------// public Object LoadSync(string resId_, string resName_, object refer) { string url = ResConfig.GetResUrl(resId_, resName_, ""); //去除后缀名 Object data = AssetCache.me.LoadSync(url, refer); return(data); }
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, ""); }
//-------∽-★-∽------∽-★-∽--------∽-★-∽创建相关∽-★-∽--------∽-★-∽------∽-★-∽--------// public GameObject LoadGameObj(string resId_, string resName_) { string url = ResConfig.GetResUrl(resId_, resName_, ""); //去除后缀名 return(GameObjCache.me.LoadSync(url)); }
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); }
//资源注册 protected virtual void RegResource() { ResConfig.AddResCfg(CC_RES_ID.RES_REG); }