// Start is called before the first frame update void Start() { winZoneAudio = gameObject.GetComponent <AudioSource>(); deathManager = GameObject.Find("GameController").GetComponent <EnemyDeathManager>(); sceneCont = GameObject.Find("GameController").GetComponent <SceneController>(); }
void Start() { creator = FindObjectOfType <Creator>(); deathManager = FindObjectOfType <EnemyDeathManager>(); enemies = new Dictionary <string, GameObject>(); for (int i = 0; i < names.Count; i++) { enemies.Add(names[i], prefabs[i]); } spawns = new List <Transform>(); for (int i = 0; i < spawnPoints.transform.childCount; i++) { spawns.Add(spawnPoints.transform.GetChild(i)); } }