Jump to content

game.state.callbackContext question


Recommended Posts

Hello there!

I spawn some new objects of classes i made and sometimes i need access to properties,variables etc from the current game state.

One way was to pass a reference to the constructor like i did with the game object.

The other way was to use game.state.callbackContext to access everything i want from the current state.

Are there problems doing so? Are there performance issues? Is there something better to do ? Another reference for the same things for example.



Link to comment
Share on other sites


  • Recently Browsing   0 members

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