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> ();
        }
Esempio 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> ();
        }