iPhoneInput

Hey, I’m quite new with Unity and I have a question.
I have 2 objects on my scene, they both need to get the input from the user. But when the first one got the touch I’d like that the other one don’t get the call… so is it possible when you get a touch, deal with it and when you’re done you cancel this touch in order that my second object don’t handle the input.
I can probably do it manually but I just wanted to know if Unity can do something like that

I hope I’m clear enough
Thanks

Thomas

I don’t think Unity has this built-in, you’ll have to handle it yourself. Easy option is set a (static?) variable somewhere that says the touch is already being handled by gameobject x, so gameobject y can ignore it.

ok Thanks I’ll handle it myself