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> ();
        }
        float timer;                                // Timer for counting up to the next collect.


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