//--- Unity Methods ---// private void Awake() { // Init the private variables m_spawnedEnemies = new List <GameObject>(); m_waveList = FindObjectOfType <Wave_List>(); m_timeSinceLastSpawn = 0.0f; m_isStillSpawning = false; }
// Start is called before the first frame update void Start() { waveList = FindObjectOfType <Wave_List>(); display = gameObject.GetComponent <TextMeshProUGUI>(); }