add stats-param

This commit is contained in:
Kevin Ngo
2018-12-07 18:11:00 -08:00
parent 32ea46e79b
commit 709b27772f
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
AFRAME.registerComponent('stats-param', {
init: function () {
if (AFRAME.utils.getUrlParameter('stats') === 'true') {
this.el.setAttribute('stats', '');
}
}
});

View File

@@ -52,6 +52,7 @@
play-sound__crescendo="sound: #crescendo; event: victory; volume: 0.75"
search
stage-colors="color: blue"
stats-param
vr-mode-ui="enterVRButton: #vrButton"
tutorial-2d>
<!-- fog="color: #a00; density: 0.035; type: exponential" -->