Hello Guys:
i got a CCScheduler problem.
First, tolua doesn’t export unscheduleScriptFunc function. So i add it in pkg file and re-make LuaCocos2d.cpp file. But unscheduleScriptFunc doesn’t work. In another word. I can’t unschedule my script function.
cocos2d.CCScheduler:sharedScheduler():scheduleScriptFunc(“nextFrame”, 1.0/5.0, false);
cocos2d.CCScheduler:sharedScheduler():unscheduleScriptFunc(“nextFrame”);
I debug the code. It seems m_pHashForScriptFunctions member is always NULL. Is it correct? It is hard for me to understand how does HASH_FIND_INT work. It is marco. I can’t debug into it.
How to make unscheduleScriptFunc work? Please help me, I am stuck here in a long time.
Thanks for any help.
Bests,
Zhang