I have several sprites in a CocosSharp game, and for each of them I add a CCEventListenerTouchAllAtOnce
.
I noticed that it doesn't matter where I touch, all of the sprites receive the OnTouchesBegan/Moved/Ended
event.
Is there a way to make a sprite to react only to touches relevant to it?
Also, is there a built-in solution in CocosSharp which handles overlapping sprites?
(If the touch was in an overlapping area, I'd like the top sprite to react to the touch, but not the bottom)