onEnter run twice??


#1

断点发现切换场景A->b, 顺序是 b.ctor b.onEnter a.切换函数 b.onEnter ,请问,为何b.onEnter执行2次,是否正常?


#2

Hi, @tellyounews

We will check that, which version of JSB are you using ?

Huabin


#3

cocos2d-x html5 2.2.2 执行 director.replaceScene


#4

@tellyounews

You mean cocos2d-html5 or jsb ? On which platform you run your app, web or native?
If you mean jsb, can you upgrade your engine version to 2.2.3 ? I checked, there is no such problem in this version, the onEnter function get called only once.

Huabin