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) {
|
||||
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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue