#AssetsManager.cpp文件中
1、checkupdate() 检查更新判断版本文件地址字符串(_versionFileUrl)的size是否为0,为什么不是比较版本号?
bool AssetsManager::checkUpdate()
{
if (_versionFileUrl.size() == 0 || _isDownloading) return false;
// Clear _version before assign new value.
_version.clear();
_isDownloading = true;
_downloader->createDownloadDataTask(_versionFileUrl);
return true;
}
2、update()函数为什么什么都没实现,那么lua那边调用assetsManager:update()时候,c++那边不是什么操作都没做吗?
void AssetsManager::update()
{
// all operation in checkUpdate, nothing need to do
// keep this function for compatiblity
}
这两个问题困惑了好久,求大佬们鞭策。。。。