Mouse cursor change when hovering stuff
This commit is contained in:
parent
6ac0e54906
commit
bc56aa3b8e
|
@ -101,6 +101,7 @@ Coin.prototype.get = function() {
|
||||||
|
|
||||||
if (this.mesh) {
|
if (this.mesh) {
|
||||||
this.mesh.visible = false;
|
this.mesh.visible = false;
|
||||||
|
this.mesh.raycastable = false;
|
||||||
}
|
}
|
||||||
Coin.total ++;
|
Coin.total ++;
|
||||||
Coin.nextSound.play();
|
Coin.nextSound.play();
|
||||||
|
|
|
@ -89,6 +89,8 @@ CameraSelecter.prototype.update = function(event) {
|
||||||
}
|
}
|
||||||
this.prev.go = false;
|
this.prev.go = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.getElementById('container').style.cursor = hovered ? "pointer" : "auto";
|
||||||
}
|
}
|
||||||
|
|
||||||
CameraSelecter.prototype.click = function(event) {
|
CameraSelecter.prototype.click = function(event) {
|
||||||
|
|
Loading…
Reference in New Issue