Jump to content

onSizeChange triggering function from wrong state


Andromedus
 Share

Recommended Posts

Hi.  I have this code:

this.game.scale.onSizeChange.add(this.resizeGame, this);

which calls my resizeGame callback function when the game size is changed in my menu state.  When I change state to my game state, the same resizeGame function in the old state is still being called.  How do I cancel the callback?  Thanks. :)

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...