Start group spawn
This commit is contained in:
parent
fd57c8247d
commit
b076430b34
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user