MenuItem::~MenuItem()
{
	CC_SAFE_RELEASE(_target);

    unregisterScriptTapHandler();
}
Exemple #2
0
CCMenuItem::~CCMenuItem()
{
    unregisterScriptTapHandler();
}
void MenuItem::registerScriptTapHandler(int nHandler)
{
    unregisterScriptTapHandler();
    _scriptTapHandler = nHandler;
    LUALOG("[LUA] Add MenuItem script handler: %d", _scriptTapHandler);
}
Exemple #4
0
 void CCMenuItem::registerScriptTapHandler(int nHandler)
 {
     unregisterScriptTapHandler();
     m_nScriptHandler = nHandler;
     LUALOG("[LUA] Add CCMenuItem script handler: %d", m_nScriptHandler);
 }