Update: CC - Snake FS - Mouse Down (gzewp2awcf.js) 184 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 22:27:01 +01:00
parent dfc4b891a4
commit af5ec932e5
1 changed files with 9 additions and 2 deletions

View File

@ -82,9 +82,16 @@ intersects.map(
}
if (intersect.mesh.id === 'f5xmype7dq') {
console.log('todo: pause');
this.state.paused = !this.state.paused;
if (this.state.paused) {
GameLib.Event.Emit(GameLib.Event.PAUSE_ALL_AUDIO);
} else {
GameLib.Event.Emit(GameLib.Event.CONTINUE_ALL_AUDIO);
}
}
if (intersect.mesh.id === '0eo0kat3fb') {
this.state.muted = !this.state.muted;