Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to have a (wait) yield on a for loop?

$
0
0
Well this works great, however there is a problem. If I press the screen, it counts it as many times as possible: for (var evt : Touch in Input.touches) { var HitTest0 = num0.HitTest(evt.position); } Is there any way I could have it register only once per touch, or every few seconds? Thanks, sorry for the poor explanation.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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