Beispiel #1
0
    void Awake()
    {
        instance = this;

        items = new Queue();
        //items.InitializeQueue();
        itemsCount  = 0;
        QUEUE_LIMIT = positions.Count;

        for (int i = 0; i < QUEUE_LIMIT; i++)
        {
            queuePositions.Add(positions[i].position);
        }
        virusTypes = new ABB();
        virusTypes.InicializarArbol();

        foreach (GameObject virusGo in prefabs)
        {
            virusTypes.AgregarElem(ref virusTypes.raiz, virusGo.GetComponent <Virus>());
        }
    }