ArmatureAnimation的pause和resume在lua中无法调用

使用环境是cocos2dx-3.6,在lua中调self.curArmature:getAnimation():pause()提示pause为nil,而lua绑定文件cocos2dx_studio.ini也没有把这个函数剔除,为何不能调用呢?
求解答

我是3.5的,直接看c++ lua导出的代码里面确实少了3个方法pause\resume\stop
我的做法是自己导出
int Animation_pause(lua_State * L)
{
cocostudio::ArmatureAnimation * self=(cocostudio::ArmatureAnimation *)tolua_tousertype(L,1,0);
self->pause();
return 1;
}

int Animation_resume(lua_State * L)
{
cocostudio::ArmatureAnimation * self=(cocostudio::ArmatureAnimation *)tolua_tousertype(L,1,0);
self->resume();
return 1;
}

int Animation_stop(lua_State * L)
{
cocostudio::ArmatureAnimation * self=(cocostudio::ArmatureAnimation *)tolua_tousertype(L,1,0);
self->stop();
return 1;
}

//导出ArmatureAnimation类官方未导出的3个方法pause\resume\stop
int fixAnimation(lua_State * L)
{
tolua_open(L);

tolua_module(L,"ccs",0);
tolua_beginmodule(L,"ccs");
    tolua_usertype(L,"ccs.ArmatureAnimation");
    tolua_cclass(L,"ArmatureAnimation","ccs.ArmatureAnimation","ccs.ProcessBase",nullptr);
    tolua_beginmodule(L,"ArmatureAnimation");
    tolua_function(L,"pause",Animation_pause);
    tolua_function(L,"resume",Animation_resume);
    tolua_function(L,"stop",Animation_stop);
    tolua_endmodule(L);
tolua_endmodule(L);
return 1;

}

放在
bool AppDelegate::applicationDidFinishLaunching()
里面

上面没说清楚是
auto ls = LuaEngine::getInstance()->getLuaStack()->getLuaState();
fixAnimation(ls);
这句放在
bool AppDelegate::applicationDidFinishLaunching()
里面
导出的代码我是直接放在AppDelegate.cpp里面的,你也可以单独弄个导出lua的文件,自己include进来就可以了

有没有想过,用Node的pause和resume