cocos2dx生命周期函数执行顺序

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




全部评论

相关推荐

冷艳的小师弟在看机会:jd测评乱点直接被挂了,哭死~
点赞 评论 收藏
分享
Natrium_:这时间我以为飞机票
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务