Skip to content
Snippets Groups Projects
Commit 21d5241b authored by Paolo Brasolin's avatar Paolo Brasolin
Browse files

refactor: #fe improve naming

parent 4979801f
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,11 @@ class Clue {
? new TextCluePayload(this.scene, baseHeight)
: new SpriteCluePayload(this.scene, baseHeight);
this.payload.once("addedtoscene", this.showTexture.bind(this));
this.payload.once("addedtoscene", this.showPayload.bind(this));
this.payload.loadWord(word);
}
showTexture() {
showPayload() {
if (!this.scene.scene.isActive()) return;
this.scene.physics.add.existing(this.payload);
this.scene.cluesGroup.add(this.payload);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment