I fixed the first error but now I need my enemies to spawn when the enemies left in the wave is 0, here is the code and please help me @Coder100 (sorry for ping)
it's supposed to do 1 blue enemy 2 blue enemy 5 blue enemy 3 green enemies and 10 yellow enemies and it doesn't do that
public class Wave
public GameObject enemy;
public int count;
public float rate;
also if 2+ lasers are hitting one target then the money gets huge
enemiesAlive is a static variable, not a member variable. Very important difference there.