Ejemplo n.º 1
0
    private void EatFish(GameObject fishObject)
    {
        //sets penguin's stomach to full until he feeds baby
        if (fullTummy)
        {
            return;
        }
        fullTummy = true;

        //removes eaten fish and gives the agent a reward for eating the fish
        pArea.removeSpecificFish(fishObject);
        AddReward(1f);
    }