I have been trying to use phaser examples in my games. I noticed that the examples are not using states. The game that I am developing is using states, so I can't use the examples because I keep getting errors.
Here's an example of what I am talking about:
Phaser example:
game.input.onDown.addOnce(updateText, this);
my code
game.input.onDown.addOnce(this.updateText(), this);
What am I doing wrong? What can I do different?