Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     timesUpText.SetActive(false);
     TimeBar  = GetComponent <Image>();
     Timeleft = MaxTime;
     state    = GetComponent <foodState>();
 }
Ejemplo n.º 2
0
 public void ChangeState(foodState newState)
 {
     currentState.gameObject.SetActive(false);
     newState.gameObject.SetActive(true);
     currentState = newState;
 }