Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

c# if statements in IEnumerator crash unity

$
0
0
Been making an enemy spawner script, and to use the waitforseconds, I have been using an ienumerator, however this snippet of code causes the unity editor to crash //wait... if(keep_units_up == true){ if (units<=min_units){ yield return new WaitForSeconds(wait_time/regain_rate); } } yield return new WaitForSeconds(wait_time); I know this its the if statements, but I'm lost when it comes to the solution.... Also while I here, I wish unity answers would quit blocking this message with its suggested titles even though I already have one.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



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