Mouse cursor change when hovering stuff

This commit is contained in:
Thomas FORGIONE 2015-06-08 09:51:30 +02:00
parent 6ac0e54906
commit bc56aa3b8e
2 changed files with 3 additions and 0 deletions

View File

@ -101,6 +101,7 @@ Coin.prototype.get = function() {
if (this.mesh) {
this.mesh.visible = false;
this.mesh.raycastable = false;
}
Coin.total ++;
Coin.nextSound.play();

View File

@ -89,6 +89,8 @@ CameraSelecter.prototype.update = function(event) {
}
this.prev.go = false;
}
document.getElementById('container').style.cursor = hovered ? "pointer" : "auto";
}
CameraSelecter.prototype.click = function(event) {