Unity help

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)

and screenshots


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

using UnityEngine;

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

You are viewing a single comment. View All

@Bunnytoes no, you just can't modify WaveSpawner.EnemiesAlive.