#12 initial commit
This commit is contained in:
@@ -38,7 +38,7 @@ const defaults = {
|
||||
const tl = 4;
|
||||
|
||||
class MazeQuizGame extends EventManager {
|
||||
emits = ['finish', 'sceneSwitch']
|
||||
emits = ['finish', 'sceneSwitch', 'interaction']
|
||||
constructor(engine, data) {
|
||||
super();
|
||||
this.data = data;
|
||||
@@ -97,6 +97,7 @@ class MazeQuizGame extends EventManager {
|
||||
await this.mazeObject.load();
|
||||
this.object = this.mazeObject.object;
|
||||
resolve(this)
|
||||
this.dispatchEvent({type:'interaction'});
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user