add stats-param
This commit is contained in:
7
src/components/stats-param.js
Normal file
7
src/components/stats-param.js
Normal file
@@ -0,0 +1,7 @@
|
||||
AFRAME.registerComponent('stats-param', {
|
||||
init: function () {
|
||||
if (AFRAME.utils.getUrlParameter('stats') === 'true') {
|
||||
this.el.setAttribute('stats', '');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -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" -->
|
||||
|
||||
Reference in New Issue
Block a user