Update: CC - Snake FS - Mouse Up (ckplg6wqnl.js) 262 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 22:56:02 +01:00
parent 6feaa2ab61
commit 78ad984772
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@ if (!this.entityLoaded) {
if (!this.initialized) {
this.buttons = this.entityLoaded.buttons;
this.state = this.entityLoaded.state;
this.meshPauseOverlay = this.entityLoaded.meshPauseOverlay;
this.initialized = true;
}
@ -19,9 +20,15 @@ this.buttons.map(
if (button.id === 'f5xmype7dq') {
if (this.state.paused) {
this.meshPauseOverlay.visible = true;
this.meshPauseOverlay.updateInstance('visible');
button.materials[0].visible = true;
button.materials[0].updateInstance('visible');
} else {
this.meshPauseOverlay.visible = false;
this.meshPauseOverlay.updateInstance('visible');
button.materials[0].visible = false;
button.materials[0].updateInstance('visible');
}