Start group spawn

This commit is contained in:
Ader Alisma 01 2023-10-01 19:32:51 -04:00
parent 1453e7d060
commit 13f00e326c
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,8 @@ public class WaveConfig : ScriptableObject
[SerializeField]
private List<EnemyType> _constantSpawn = new List<EnemyType>();
[SerializeField]
private List<EnemyType> _groupSpawn = new List<EnemyType>(); //TODO: Turn into List of list later on
[SerializeField]
private float _gameDuration = 0;
private float _enemySpawndOnStart = 0;
private int _enemySum = 0;
@ -46,4 +48,9 @@ public class WaveConfig : ScriptableObject
return _enemySum.ToFloat();
}
public List<EnemyType> getGroupList()
{
return _groupSpawn;
}
}

View File

@ -15,4 +15,9 @@ MonoBehaviour:
_constantSpawn:
- _enemy: {fileID: 313037212318601125, guid: 5bbf0d85fa5bb3f4599da79f0a84e3a9, type: 3}
_count: 5
_groupSpawn:
- _enemy: {fileID: 313037212318601125, guid: 5bbf0d85fa5bb3f4599da79f0a84e3a9, type: 3}
_count: 3
- _enemy: {fileID: 313037212318601125, guid: 5bbf0d85fa5bb3f4599da79f0a84e3a9, type: 3}
_count: 1
_gameDuration: 1