// Start is called before the first frame update void Start() { health = maxHealth; hpBar.SetMaxHealth(maxHealth); currentState = EaterState.Waiting; timeBar.SetMaxTime(maxWait); TimeSetTime = Time.time; }
public Eater(int hunger) { this.hunger = hunger; this.state = CalculateState(hunger); }