private void ShowHideValuePopup(LineEntryIdicator indicator) { if (currentValuePopup == null) { currentValuePopup = viewCreator.InstantiateChartPopup(contentView.transform, Config.PopupPrefab); } if (indicator.entry != currentValuePopupEntry) { UpdateValuePopup(indicator); currentValuePopupEntry = indicator.entry; } else { HideCurrentValuePopup(); } }