Answer the question
In order to leave comments, you need to log in
How to access inside a class from its method in Typescript?
Situation:
Inside the Main class there is an update method.
From the update method I call the win class method.
export class Main {
update {
this.game.physics.arcade.overlap(this._Players[0].PhaserPlayer, this._Gorilla.Goal, this.win);
},
win {
...
}
}
function () {
this.game.state.start('Main');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question