wait before going into normal arena spawn rate
This commit is contained in:
parent
1b51d18790
commit
c74dbe3aef
@ -12,4 +12,4 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 8de175900b604adb984b49af64538a07, type: 3}
|
||||
m_Name: Arena Stats
|
||||
m_EditorClassIdentifier:
|
||||
secondsBetweenSpawners: 3
|
||||
secondsBetweenSpawners: 10
|
||||
|
||||
@ -31,7 +31,7 @@ public class Arena : MonoBehaviour {
|
||||
}
|
||||
|
||||
IEnumerator SpawnEnemies() {
|
||||
yield return new WaitForSeconds(stats.secondsBetweenSpawners);
|
||||
yield return new WaitForSeconds(stats.initWaitToSpawn);
|
||||
|
||||
int currentSpawner = 0;
|
||||
|
||||
|
||||
@ -3,4 +3,5 @@
|
||||
[CreateAssetMenu]
|
||||
public class ArenaStats : ScriptableObject {
|
||||
[Min(0f)] public float secondsBetweenSpawners = 3f;
|
||||
[Min(0f)] public float initWaitToSpawn = 3f;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user