Corrected Thierry's bug
This commit is contained in:
parent
fce7adb495
commit
c2dd1517e5
|
@ -35,12 +35,14 @@ Coin.prototype.update = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Coin.prototype.get = function() {
|
Coin.prototype.get = function() {
|
||||||
this.got = true;
|
if (!this.got) {
|
||||||
this.mesh.visible = false;
|
this.got = true;
|
||||||
Coin.total ++;
|
this.mesh.visible = false;
|
||||||
var sound = new Audio('/static/data/music/redcoins/' + Coin.total + '.mp3');
|
Coin.total ++;
|
||||||
sound.play();
|
var sound = new Audio('/static/data/music/redcoins/' + Coin.total + '.mp3');
|
||||||
console.log(sound)
|
sound.play();
|
||||||
|
console.log(sound)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Coin.total = 0;
|
Coin.total = 0;
|
||||||
|
|
Loading…
Reference in New Issue