cocos2dx--两个场景切换各函数调用顺序

场景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

上一篇:java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager


下一篇:Java 导出Excel xlsx、xls, CSV文件