public void ProcessFood(float time) { currentTime += time; something = 1; if (currentTime >= processInTime) { //tiempo.convert(timebar); parentfood.ChangeState(nextState); } }