private void LateUpdate() { if (Player.groups.Exists(unit)) { if (!outline.outlined) { outline.EnableOutline(); } } else { outline.DisableOutline(); } }