fixed cow
This commit is contained in:
parent
d3a06effc5
commit
0fe6f1f8dd
4 changed files with 20 additions and 16 deletions
|
|
@ -6,14 +6,18 @@ public class Cow : Animal {
|
|||
|
||||
private void Awake() {
|
||||
_canBeMilked = true;
|
||||
HouseController.NewDayEvent.AddListener(UpdateCanBeMilked);
|
||||
HouseController.NewDayEvent.AddListener(NextDay);
|
||||
}
|
||||
|
||||
private void NextDay() {
|
||||
UpdateCanBeMilked();
|
||||
//ActionManager.Instance.NextDayAction(gameObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the _canBeMilked bool
|
||||
*/
|
||||
private void UpdateCanBeMilked() {
|
||||
Debug.Log("_ca" + _canBeMilked);
|
||||
public void UpdateCanBeMilked() {
|
||||
_canBeMilked = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue