void SpriteMainScene::onExit() { auto director = Director::getInstance(); auto sched = director->getScheduler(); sched->unscheduleAllForTarget(this); Scene::onExit(); }
void ParticleMainScene::onExitTransitionDidStart() { Scene::onExitTransitionDidStart(); auto director = Director::getInstance(); auto sched = director->getScheduler(); sched->unscheduleAllForTarget(this); }
TwoSchedulers::~TwoSchedulers() { auto defaultScheduler = Director::getInstance()->getScheduler(); defaultScheduler->unscheduleAllForTarget(sched1); defaultScheduler->unscheduleAllForTarget(sched2); sliderCtl1->release(); sliderCtl2->release(); sched1->release(); sched2->release(); actionManager1->release(); actionManager2->release(); }
static void update(float dt) { log("---------%f", dt); auto p = Director::getInstance()->getScheduler(); p->unscheduleAllForTarget(_target); }