We need to define the template for the enemies to focus the next section on how to implement the main evolutionary algorithm. In this case, we will use a serializable class named EvolEnemy:
using UnityEngine;using UnityEngine.UI;[System.Serializable]public class EvolEnemy{ public Sprite sprite; public int healthInit; public int healthMax; public int healthVariance;}