pause btn

This commit is contained in:
Kevin Ngo
2018-07-22 23:58:29 +02:00
parent 98c57f7b24
commit a3a11e9207
6 changed files with 32 additions and 18 deletions

View File

@@ -82,6 +82,10 @@ AFRAME.registerState({
state.menuSelectedChallenge.difficulty = difficulty;
},
pause: (state) => {
state.menu.active = true;
},
/**
* Start challenge.
* Transfer staged challenge to the active challenge.
@@ -131,10 +135,6 @@ AFRAME.registerState({
computeSearchPagination(state);
},
togglemenu: (state) => {
state.menu.active = !state.menu.active;
},
'enter-vr': (state) => {
state.inVR = true;
},