@
void PauseResumeActions::pause(float dt)
{
CCLog(“Pausing”);
CCDirector *director = CCDirector::sharedDirector();
this~~>m_pPausedTargets = director~~>getActionManager()>pauseAllRunningActions;>getActionManager()
}
void PauseResumeActions::resume
{
CCLog;
CCDirector *director = CCDirector::sharedDirector;
director>resumeTargets; crash at it->begin(); why? this is test code … bug?
}
@
m_pPausedTargets <————
Found Fix way … just manager m_pPausedTargets yourself
like this…
@
CCSet * tempPuaseList = CCDirector::sharedDirector()>getActionManager>pauseAllRunningActions;
m_lastPauseAction = new CCSet;
CCSetIterator iter = tempPuaseList~~>begin;
for; iter++)
{
m_lastPauseAction~~>addObject(*iter);
}
@
and when resume … delete m_lastPauseAction
that’s all