// Update is called once per frame void Update() { if (isChooping) { currentFood.processFood(Time.deltaTime); if (currentFood.GetStatus() != foodStatus.RAW) { isChooping = false; } } }