cocos2dx生命周期函数执行顺序
1.使用pushScene顺序
FirstScene onExitTransitionDidStart
FirstScene onExit
SecondScene onEnter
SecondScene onEnterTransitionDidFinish
2.使用popScene顺序
SecondeScene onExit
SecondeScene cleanup
FirstScene onEnter
FirstScene onEnterTransitionDidFinish
3.使用replaceScene顺序
FirstScene onExitTransitionDidStart
FirstScene onExit
FirstScene cleanup
SecondeScene onEnter
SecondeScene onEnterTransitionDidFinish
4.使用TransitionScene(过渡效果)顺序
FirstScene onExitTransitionDidStart
SecondeScene onEnter
FirstScene onExit
FirstScene cleanup
SecondeScene onEnterTransitionDidFinish