void Start() { canSpawn = false; enemiesSpawned = new List <GameObject>(); spawnsPoints = new List <Transform>(); Transform spManager = transform.Find("SpawnsPoint"); Transform[] tChildren = spManager.GetComponentsInChildren <Transform>(); foreach (Transform t in tChildren) { if (t != spManager) { spawnsPoints.Add(t); } } if (startSpawning) { StartToSpawn(); } HowManyDeads = 0; quest = null; }
public void SetQuest(CanvasItemsUIQuest q) { quest = q; }