schedule not working on the very first time executing...

Hi,

I found an odd question.

I run my implementing game on iPhone4S with iOS 5.1.1, and when I run it through XCode debug mode at the very first time .

It will just do nothing after entering to GameLayer(derived from CCLayer), but if I close it, and open it again, it runs smoothly.

It’s strange, I didn’t change any codes, or even change the xcode or project settings, it just happens. :frowning:

After a little of checking time, I find the updateGame function(scheduler function I called on the end of init function) is not working at first time, but works perfectly the second time.

I have no idea about this situation, anybody has any suggestion ?

Thank you.

Sorry for wasting your time !

It’s my fault !

Bomb it by myself !