示例#1
0
    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;
    }
示例#2
0
 public void SetQuest(CanvasItemsUIQuest q)
 {
     quest = q;
 }