moved Cow.cs and Chicken.cs into Animals Folder

Chicken lays eggs now every day
This commit is contained in:
dhain 2022-06-24 08:53:56 +02:00
parent 4a8067d3d7
commit 2d51baacd8
10 changed files with 140 additions and 106 deletions

View file

@ -0,0 +1,17 @@
using Actions;
namespace Animals {
public class Chicken : Animal {
void Start() {
HouseController.NewDayEvent.AddListener(LayEgg);
}
/**
* Gives a Random amount of eggs to the player
* Directly into the Inventory
*/
private void LayEgg() {
ActionManager.Instance.NextDayAction(gameObject);
}
}
}