Foerming/Assets/Scripts/Animals/Chicken.cs
dhain 2d51baacd8 moved Cow.cs and Chicken.cs into Animals Folder
Chicken lays eggs now every day
2022-06-24 08:53:56 +02:00

17 lines
405 B
C#

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);
}
}
}