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.
↧