Exemplo n.º 1
0
 void Update()
 {
     UpdateTarget();
     if (target)
     {
         if (infections.getInfectionNum() > 0)
         {
             Chase();
         }
         else
         {
             Flee();
         }
     }
     else
     {
         Patrol();
     }
 }
Exemplo n.º 2
0
 public void InfectionSlider()
 {
     infectionSlider.value = infection.getInfectionNum();
 }