Corrected Thierry's bug
This commit is contained in:
parent
fce7adb495
commit
c2dd1517e5
|
@ -35,6 +35,7 @@ Coin.prototype.update = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Coin.prototype.get = function() {
|
Coin.prototype.get = function() {
|
||||||
|
if (!this.got) {
|
||||||
this.got = true;
|
this.got = true;
|
||||||
this.mesh.visible = false;
|
this.mesh.visible = false;
|
||||||
Coin.total ++;
|
Coin.total ++;
|
||||||
|
@ -42,6 +43,7 @@ Coin.prototype.get = function() {
|
||||||
sound.play();
|
sound.play();
|
||||||
console.log(sound)
|
console.log(sound)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Coin.total = 0;
|
Coin.total = 0;
|
||||||
Coin.BASIC_MESH = null;
|
Coin.BASIC_MESH = null;
|
||||||
|
|
Loading…
Reference in New Issue