本文整理汇总了C++中CCDirector::isSendCleanupToScene方法的典型用法代码示例。如果您正苦于以下问题:C++ CCDirector::isSendCleanupToScene方法的具体用法?C++ CCDirector::isSendCleanupToScene怎么用?C++ CCDirector::isSendCleanupToScene使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCDirector
的用法示例。
在下文中一共展示了CCDirector::isSendCleanupToScene方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setNewScene
void CCTransitionScene::setNewScene(float dt)
{
CC_UNUSED_PARAM(dt);
CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(CCTransitionScene::setNewScene), this);
// Before replacing, save the "send cleanup to scene"
CCDirector *director = CCDirector::sharedDirector();
m_bIsSendCleanupToScene = director->isSendCleanupToScene();
director->replaceScene(m_pInScene);
// issue #267
m_pOutScene->setVisible(true);
}
示例2: setNewScene
void CCTransitionScene::setNewScene(ccTime dt)
{
// [self unschedule:_cmd];
// "_cmd" is a local variable automatically defined in a method
// that contains the selector for the method
this->unschedule(schedule_selector(CCTransitionScene::setNewScene));
CCDirector *director = CCDirector::sharedDirector();
// Before replacing, save the "send cleanup to scene"
m_bIsSendCleanupToScene = director->isSendCleanupToScene();
director->replaceScene(m_pInScene);
// enable events while transitions
CCTouchDispatcher::sharedDispatcher()->setDispatchEvents(true);
// issue #267
m_pOutScene->setIsVisible(true);
}
示例3: finishAndCleanup
//------------------------------------------------------------------------------
bool finishAndCleanup(CCScene * pInScene, CCScene * pOutScene)
{
// clean up
pInScene->setVisible(true);
pInScene->setPosition(ccp(0, 0));
pInScene->setScale(1.0f);
pInScene->setRotation(0.0f);
pInScene->getCamera()->restore();
pOutScene->setVisible(false);
pOutScene->setPosition(ccp(0, 0));
pOutScene->setScale(1.0f);
pOutScene->setRotation(0.0f);
pOutScene->getCamera()->restore();
// Before replacing, save the "send cleanup to scene"
CCDirector *director = CCDirector::sharedDirector();
director->setNotificationNode(pInScene);
return director->isSendCleanupToScene();
}