Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        health = maxHealth;
        hpBar.SetMaxHealth(maxHealth);
        currentState = EaterState.Waiting;

        timeBar.SetMaxTime(maxWait);
        TimeSetTime = Time.time;
    }
Esempio n. 2
0
 public Eater(int hunger)
 {
     this.hunger = hunger;
     this.state  = CalculateState(hunger);
 }