rename pause menu events

This commit is contained in:
Kevin Ngo
2018-10-15 16:34:47 -07:00
parent 8d0fbc4015
commit 4507b91342
4 changed files with 27 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ AFRAME.registerComponent('song', {
// Base volume.
this.audioAnalyser.gainNode.gain.value = BASE_VOLUME;
this.el.addEventListener('pausemenurestart', this.onRestart.bind(this));
this.el.addEventListener('gamemenurestart', this.onRestart.bind(this));
this.el.addEventListener('wallhitstart', this.onWallHitStart.bind(this));
this.el.addEventListener('wallhitend', this.onWallHitEnd.bind(this));
},