Example #1
0
 public void DoCut()
 {
     cutProcess        += 26;
     ProcesSlider.value = Mathf.Clamp(cutProcess / 100, 0, 1.01f);
     if (cutProcess >= 100)
     {
         CurrentState = cutState.foodOk;
     }
 }
Example #2
0
 public void TakeFood()
 {
     CurrentState = cutState.nofood;
 }
Example #3
0
 public void PutGoodFood()
 {
     CurrentState = cutState.foodOk;
 }
Example #4
0
 public void PutFood()
 {
     CurrentState = cutState.hasfood;
 }
Example #5
0
 public void Reset()
 {
     CurrentState       = cutState.nofood;
     cutProcess         = 0;
     ProcesSlider.value = 0;
 }