本来是在2.2.3中写的代码,今天想转到2.2.5上去.
结果第一个问题出现了
function ArmatureHelper.createArmatureByName( name, handler )
local armature = CCArmature:create(name)
armature:connectMovementEventSignal(function(movementType, movementID)
if handler then handler(movementType, movementID, armature) end
end)
return armature
end
```
这是2.2.3的代码,
可是在2.2.5的上面,结果出现如下错误
LUA ERROR: [string "C:/quick-cocos2d-x-2.2.5/bin/game01/scripts/app/uti
ls/ArmatureHelper.lua"]:69: attempt to call method 'connectMovementEventSignal'
(a nil value)
请教一下,这是啥原因呢?我看2.2.5的CCArmature类中还是有这个函数的,但是我用不了,是没导出的吗?
还是已经换了方式了?