Merge pull request #7062 from maldewar/v3

Update _bPlaying on CCActionObject.
This commit is contained in:
minggo 2014-10-13 09:59:18 +08:00
commit c330a0c668
1 changed files with 3 additions and 0 deletions

View File

@ -237,6 +237,7 @@ void ActionObject::play(CallFunc* func)
void ActionObject::pause()
{
_bPause = true;
_bPlaying = false;
}
void ActionObject::stop()
@ -245,6 +246,7 @@ void ActionObject::stop()
{
e->stopAction();
}
_bPlaying = false;
_pScheduler->unschedule(CC_SCHEDULE_SELECTOR(ActionObject::simulationActionUpdate), this);
_bPause = false;
}
@ -283,6 +285,7 @@ void ActionObject::simulationActionUpdate(float dt)
}
else
{
_bPlaying = false;
_pScheduler->unschedule(CC_SCHEDULE_SELECTOR(ActionObject::simulationActionUpdate), this);
}
}