wait before going into normal arena spawn rate

This commit is contained in:
Soulaha Balde 2022-04-02 16:21:11 -04:00
parent 1b51d18790
commit c74dbe3aef
3 changed files with 3 additions and 2 deletions

View File

@ -12,4 +12,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8de175900b604adb984b49af64538a07, type: 3} m_Script: {fileID: 11500000, guid: 8de175900b604adb984b49af64538a07, type: 3}
m_Name: Arena Stats m_Name: Arena Stats
m_EditorClassIdentifier: m_EditorClassIdentifier:
secondsBetweenSpawners: 3 secondsBetweenSpawners: 10

View File

@ -31,7 +31,7 @@ public class Arena : MonoBehaviour {
} }
IEnumerator SpawnEnemies() { IEnumerator SpawnEnemies() {
yield return new WaitForSeconds(stats.secondsBetweenSpawners); yield return new WaitForSeconds(stats.initWaitToSpawn);
int currentSpawner = 0; int currentSpawner = 0;

View File

@ -3,4 +3,5 @@
[CreateAssetMenu] [CreateAssetMenu]
public class ArenaStats : ScriptableObject { public class ArenaStats : ScriptableObject {
[Min(0f)] public float secondsBetweenSpawners = 3f; [Min(0f)] public float secondsBetweenSpawners = 3f;
[Min(0f)] public float initWaitToSpawn = 3f;
} }