关于lua-test的AssetsManagerTest的createDownloadDir() 跪求大哥

为什么AssetsManagerTest里面可以直接用local pathToSave = createDownloadDir() 我自己代码里写就报空。。需要require哪个类么。。

好像是要把 这两个复制到Classes文件夹里面,然后重新编译一下就可以用了

忘了编译之前还要在AppDelegate.cpp里面

#include “lua_assetsmanager_test_sample.h”

然后注册一下
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID ||CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
register_assetsmanager_test_sample(stack->getLuaState());
#endif

3q!!我去试试 奇怪为什么不直接导出到lua啊