Ader Alisma 01 15b5976cb0 Debut Wave Editor
LevelConfig cnotient la liste des ennemies à spawn à un rythme constant ainsi que la durée du jeux

EnemyType contient l'ennemi ainsi que la quantité à SpawnerTile

Modifications de Level et TilemapData afin d'accéder aux paramètres des Spawners du jeu
2023-07-09 18:59:37 -04:00

17 lines
570 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Gather And Defend/Levels/LevelConfig")]
public class LevelConfig : ScriptableObject
{
//IEnumerable for 1. list of type 2. timer. with title of row nbr INSPIRED FROM DATA
[SerializeField]
private List<EnemyType> _constantSpawn = new List<EnemyType>();
[SerializeField]
private int _gameDuration = 0;
public List<EnemyType> ConstantSpawn { get { return _constantSpawn; } }
public int GameDuration { get { return _gameDuration; } }
}