float timer;                                        // Timer for counting up to the next collect.


        void Start()
        {
            // Setting up the references.
            hive            = GameObject.FindGameObjectWithTag("Hive");
            hiveAmount      = hive.GetComponent <Hive> ();
            foragerCapacity = GetComponentInParent <ForagerCapacity> ();
        }
Exemplo n.º 2
0
        float timer;                                // Timer for counting up to the next collect.


        void Start()
        {
            // Setting up the references.
            foragerCapacity = GetComponentInParent <ForagerCapacity> ();
            foragerMemory   = GetComponentInParent <ForagerMemory> ();
        }