void CheckPosition(Vector2 position) { InputPopupHandler handler; handlers.TryGetValue(position, out handler); if (activeHandler == handler) { return; } if (activeHandler != null) { activeHandler.Hide(); } if (handler != null) { handler.Show(); } activeHandler = handler; }
public void OnPointerExit(PointerEventData eventData) { handler.Hide(); }