fix game menu button binds
This commit is contained in:
@@ -5,8 +5,11 @@ AFRAME.registerComponent('debug-state', {
|
||||
play: function () {
|
||||
const flags = AFRAME.utils.getUrlParameter('debugstate').trim();
|
||||
if (!flags) { return; }
|
||||
flags.split(',').forEach(flag => {
|
||||
this.el.sceneEl.emit(`debug${flag.trim()}`, null, false);
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
flags.split(',').forEach(flag => {
|
||||
this.el.sceneEl.emit(`debug${flag.trim()}`, null, false);
|
||||
});
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user