Example #1
0
    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;
    }
Example #2
0
 public void OnPointerExit(PointerEventData eventData)
 {
     handler.Hide();
 }