Update: CC - Snake FS - Mouse Up (ckplg6wqnl.js) 262 bytes modified
parent
6feaa2ab61
commit
78ad984772
|
@ -5,6 +5,7 @@ if (!this.entityLoaded) {
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
this.buttons = this.entityLoaded.buttons;
|
this.buttons = this.entityLoaded.buttons;
|
||||||
this.state = this.entityLoaded.state;
|
this.state = this.entityLoaded.state;
|
||||||
|
this.meshPauseOverlay = this.entityLoaded.meshPauseOverlay;
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,9 +20,15 @@ this.buttons.map(
|
||||||
|
|
||||||
if (button.id === 'f5xmype7dq') {
|
if (button.id === 'f5xmype7dq') {
|
||||||
if (this.state.paused) {
|
if (this.state.paused) {
|
||||||
|
this.meshPauseOverlay.visible = true;
|
||||||
|
this.meshPauseOverlay.updateInstance('visible');
|
||||||
|
|
||||||
button.materials[0].visible = true;
|
button.materials[0].visible = true;
|
||||||
button.materials[0].updateInstance('visible');
|
button.materials[0].updateInstance('visible');
|
||||||
} else {
|
} else {
|
||||||
|
this.meshPauseOverlay.visible = false;
|
||||||
|
this.meshPauseOverlay.updateInstance('visible');
|
||||||
|
|
||||||
button.materials[0].visible = false;
|
button.materials[0].visible = false;
|
||||||
button.materials[0].updateInstance('visible');
|
button.materials[0].updateInstance('visible');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue