Esempio n. 1
0
    public void TakeFood(ref AnimalCarrying animalCarrying)
    {
        int takeFoodAmount = 3;

        animalCarrying.SetupCarrying(takeFoodAmount);
        foodObject.SetActive(false);
        //foodAmount = 3;
    }
Esempio n. 2
0
    public void TakeWood(ref AnimalCarrying animalCarrying)
    {
        //woodAmount = 5;
        int takeWoodAmount = 5;

        animalCarrying.SetupCarrying(takeWoodAmount);
        Destroy(gameObject);
    }