CCLayer的优先级设置函数setTouchPriority()不生效

cocos2dx 2.2.3版本, 对于CCLayer的优先级设置函数setTouchPriority()居然不起作用,我表示非常的愤懑

因为CCLayer的触摸事件注册函数用到的priority为 m_pScriptTouchHandlerEntry->getPriority(),该值为函数
void CCLayer::registerScriptTouchHandler(int nHandler, bool bIsMultiTouches, int nPriority, bool bSwallowsTouches)设置
而非setTouchPriority()设置的值

void CCLayer::registerWithTouchDispatcher()
{
CCTouchDispatcher* pDispatcher = CCDirector::sharedDirector()->getTouchDispatcher();
// Using LuaBindings
if (m_pScriptTouchHandlerEntry)
{
if (m_pScriptTouchHandlerEntry->isMultiTouches())
{
pDispatcher->addStandardDelegate(this, 0);
LUALOG(" Add multi-touches event handler: %d", m_pScriptTouchHandlerEntry->getHandler());
}
else
{
pDispatcher->addTargetedDelegate(this,
m_pScriptTouchHandlerEntry->getPriority(),
m_pScriptTouchHandlerEntry->getSwallowsTouches());
LUALOG(" Add touch event handler: %d", m_pScriptTouchHandlerEntry->getHandler());
}
}
else
{
if( m_eTouchMode == kCCTouchesAllAtOnce ) {
pDispatcher->addStandardDelegate(this, 0);
} else {
pDispatcher->addTargetedDelegate(this, m_nTouchPriority, true);
}
}
}

正解!!!我也遇到了这个问题!!setTouchPriority只适用于c++,在lua中不起作用!!!坑死我了,我目前正被这个问题缠着…哎,坑死人不偿命啊