Пример #1
0
void Story::callbackActionFinished(cocos2d::Node* sender)
{
    tapCount--;
    if ( tapCount <= 0 )
    {
        goNextScene();
    }
}
Пример #2
0
void SceneManager::runSceneWithID(SceneType sceneID)
{
//	CCDirector::sharedDirector()->setUserInteractionEnabled(false);

	if (curScene != NULL)
	{
		BaseLayer::inst()->leave();
	}
	m_nextSceneID = sceneID;

	if (curScene == NULL && m_nextSceneID == kStartScene)
	{
		goNextScene();
	}
	else
	{
		goNextScene();
//		self performSelector:@selector(goNextScene) withObject:nil afterDelay:0.025f];
	}
}
Пример #3
0
bool Story::onTouchBegan(cocos2d::Touch* touch, cocos2d::Event *event)
{
	cocos2d::Point pos = this->convertTouchToNodeSpace(touch);

    if ( skipLabel->isVisible() && skipLabel->isTouchPoint(pos) )
    {
        tapCount = 0;
    }
    
    if ( tapCount <= 0 )
    {
        goNextScene();
    }
    else
    {
        skipLabel->setVisible(true);
    }
    return true;
}
Пример #4
0
bool StageSelect::onTouchBegan(cocos2d::Touch* touch, cocos2d::Event *event)
{
	cocos2d::Point pos = this->convertTouchToNodeSpace(touch);
	goNextScene();
    return true;
}