Double tap with 2 fingers

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;
        }
}

2 Finger taps with a mouse? Or are you using a touch device?

have you tried:

if(!toque && NTaps >= 2)

well, actually the code works on both devices, but I if I want to make a double tap, only will works on touch devices & That’s what I want.
Thanks

Oh thanks, but I can’t see the sharp :stuck_out_tongue: I’m a beginner developer, not an expert on java neither C# but thanks.