Esempio n. 1
0
 public void ProcessFood(float time)
 {
     if (currentTime >= processingTime)
     {
         barra.SetActive(false);
         parentFood.ChangeState(nextState);
     }
     else
     {
         barra.SetActive(true);
         currentTime += time;
     }
 }