Quantcast
Channel: Questions in topic: "points-counter"
Viewing all articles
Browse latest Browse all 51

Touchscreen on GameObjects

$
0
0
Hello, I'm working on a 2D game. You have to tap over falling stars to get points. The stars are all the same GameObject that is instanciated by a generator at the top of the screen. I need to raise the points counter for each tap on the stars but I don't know much about touch screen events.. First I did it with OnMouseDown but it only works with one touch at a time And I only found examples for GUI Texture touches but I need for GameObjects. Hope you can help me with this and sorry for my bad english.

Viewing all articles
Browse latest Browse all 51

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>