public void TestNotAllowMetalWorker()
        {
            GameObject         placeholder = new GameObject();
            EnemyWorkerManager ewm         = placeholder.AddComponent <EnemyWorkerManager>();

            Assert.False(ewm.AllowWorker(ResourceType.Metal));
        }
        public void TestAllowWoodWorker()
        {
            GameObject         placeholder = new GameObject();
            EnemyWorkerManager ewm         = placeholder.AddComponent <EnemyWorkerManager>();

            ewm.WoodHutBuild();


            Assert.True(ewm.AllowWorker(ResourceType.Wood));
        }
    void checkWorkerNeeded()
    {
        bool check;
        bool check1 = enManager.AllowWorker(ResourceType.Wood);
        bool check2 = enManager.AllowWorker(ResourceType.Metal);
        bool check3 = enManager.AllowWorker(ResourceType.Stone);

        if (check1 || check2 || check3)
        {
            check = true;
        }
        else
        {
            check = false;
        }
        animator.SetBool("worker", check);
    }