Update: CC - Snake FS - Mouse Up (ckplg6wqnl.js) 402 bytes modified
parent
d75f951b45
commit
e8ab16681d
|
@ -4,13 +4,28 @@ if (!this.entityLoaded) {
|
|||
|
||||
if (!this.initialized) {
|
||||
this.buttons = this.entityLoaded.buttons;
|
||||
this.state = this.entityLoaded.state;
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
this.buttons.map(
|
||||
function(button) {
|
||||
button.materials[0].visible = false;
|
||||
button.materials[0].updateInstance('visible');
|
||||
}
|
||||
|
||||
if (button.id !== 'f5xmype7dq' &&
|
||||
button.id !== '0eo0kat3fb') {
|
||||
button.materials[0].visible = false;
|
||||
button.materials[0].updateInstance('visible');
|
||||
}
|
||||
|
||||
if (button.id === '0eo0kat3fb') {
|
||||
if (this.state.muted) {
|
||||
button.materials[0].visible = true;
|
||||
button.materials[0].updateInstance('visible');
|
||||
} else {
|
||||
button.materials[0].visible = false;
|
||||
button.materials[0].updateInstance('visible');
|
||||
}
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
//@ sourceURL=mouseUp.js
|
Loading…
Reference in New Issue