public void TakeFood(ref AnimalCarrying animalCarrying) { int takeFoodAmount = 3; animalCarrying.SetupCarrying(takeFoodAmount); foodObject.SetActive(false); //foodAmount = 3; }
public void TakeWood(ref AnimalCarrying animalCarrying) { //woodAmount = 5; int takeWoodAmount = 5; animalCarrying.SetupCarrying(takeWoodAmount); Destroy(gameObject); }