void Update() { if (questHolder) { CheckDistance(); if (questHolder.isActiveAndEnabled && conditionShow) { mapIcon.UpdatePosition(questHolder.transform.position); mapIcon.Show(); } else { mapIcon.Hide(); } } }