Beispiel #1
0
void RecipeBase::onEnter()
{
    CCLayer::onEnter();
    if (m_stepNo == 1)  doStep1();
    else if (m_stepNo == 2)  doStep2();
    else if (m_stepNo == 3)  doStep3();
}
Beispiel #2
0
void MeteoTemp::tick()
{
	switch(nextStep) {
	case 1:
		doStep1();
		return;
	case 2:
		doStep2();
		return;
	case 3:
		doStep3();
		return;
	}
}