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

Spawn an object every time i=+5

$
0
0
I want to spawn a game object every time a public variable is 5 more than the last for example 5,10,15,20.... but how can I do this? I was thinking of making something like public var i:int; if(i==5||i==10||i==15...){ //do something } but the problem is that this is suppose to go to infinity so how can I?maybe a list? or and array?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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