场景A切换到场景B,有切换特效
调用顺序如下:(AAABABABA)
A:构造函数
A:onEnter
A:onEnterTransitionDidFinish
B:构造函数
A:onExitTransitionDidStart
B:onEnter
A:onExit
B:onEnterTransitionDidFinish
A:析构函数
场景A切换到场景B,无切换特效
调用顺序如下:(AAABAABBA)
A:构造函数
A:onEnter
A:onEnterTransitionDidFinish
B:构造函数
A:onExitTransitionDidStart
A:onExit
B:onEnter
B:onEnterTransitionDidFinish
A:析构函数
场景A中pushScene B场景,有切换特效(AAABABAB)
调用顺序如下:
A:构造函数
A:onEnter
A:onEnterTransitionDidFinish
B:构造函数
A:onExitTransitionDidStart
B:onEnter
A:onExit
B:onEnterTransitionDidFinish
场景A中pushScene B场景,无切换特效(AAABAABB)
调用顺序如下:
A:构造函数
A:onEnter
A:onEnterTransitionDidFinish
B:构造函数
A:onExitTransitionDidStart
A:onExit
B:onEnter
B:onEnterTransitionDidFinish
场景B中popScene
调用顺序如下:
B:onExitTransitionDidStart
B:onExit
A:onEnter
A:onEnterTransitionDidFinish
cocos2dx--两个场景切换各函数调用顺序