clean up state

This commit is contained in:
Kevin Ngo
2018-10-09 17:17:41 -07:00
parent 3efc816a5b
commit 52b9b19cf5
5 changed files with 14 additions and 15 deletions

View File

@@ -234,7 +234,7 @@ AFRAME.registerState({
* Post-process the state after each action.
*/
computeState: (state) => {
state.isPlaying = !state.menu.active && !state.isPaused && !state.isVictory;
state.isPlaying = !state.menu.active && !state.isPaused && !state.isVictory && !state.isGameOver;
state.leftRaycasterActive = !state.isPlaying && state.activeHand === 'left' && state.inVR;
state.rightRaycasterActive = !state.isPlaying && state.activeHand === 'right' && state.inVR;
state.multiplierText = `${state.score.multiplier}x`;