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