void Update() { if (creep != null) { health.minValue = 0f; health.maxValue = (float)creep.GetMaxHealth(); health.value = (float)creep.GetHealth(); } if (creepNav != null) { health.minValue = 0f; health.maxValue = (float)creepNav.GetMaxHealth(); health.value = (float)creepNav.GetHealth(); } }