Detecting Return To Scene

Hi,

Here is my scenario:

I have scene A which calls the director to push Scene B on top of A. Now B is the current scene.

From within B, various game states change, and the user can return to A (by popping scene B)

I would like scene A to be aware that it is now the running scene and reload the game states changed by B.

I looked for events I could wire up for CCScene and CCGameView but I didn't come across any.

How can Scene A know that Scene B has terminated/popped?

Thanks,
J

Best Answer

  • jbranajbrana
    Accepted Answer

    Dunno how I missed OnEnter() and OnExit().

    That's what I needed

Answers

  • jbranajbrana Member
    Accepted Answer

    Dunno how I missed OnEnter() and OnExit().

    That's what I needed

Sign In or Register to comment.