diff --git a/Assets/Scripts/GMScript.cs b/Assets/Scripts/GMScript.cs index 91bf3ab..206cd7b 100644 --- a/Assets/Scripts/GMScript.cs +++ b/Assets/Scripts/GMScript.cs @@ -108,9 +108,9 @@ public class GMScript : MonoBehaviour enemyTime = 0.0f; } - if(GameObject.FindWithTag("Enemy") == null) + if(GameObject.FindWithTag("Enemy") == null && enemySpawnTime - enemyTime > 3.0f) { - enemySpawnTime = Random.Range(1.0f, 3.0f); + enemySpawnTime = enemyTime + Random.Range(1.0f, 3.0f); } }