Hi every one, I’ve been working in a orbit viewer for some time & I found a better experience for users in this interface if they could activated the object info with a two fingers double tap. This is my script for a single finger double tap, the question is how can I make the same for two fingers?
var Caja : GameObject;
static var NTaps=0;
var toque : boolean = false;
Caja.renderer.enabled = false;
function OnMouseDown() {
NTaps+=1;
if (!toque && NTaps==2) {
Caja.renderer.enabled = true;
NTaps=0;
}
}