Ejemplo n.º 1
0
        public virtual void OnPointerClick(PointerEventData eventData)
        {
            if (m_chatWndView == null)
            {
                return;
            }

            if (eventData.button == PointerEventData.InputButton.Left)
            {
                m_chatWndView.contentView.GetScrollRect().normalizedPosition = new Vector2(0f, 0f);
            }
            else if (eventData.button == PointerEventData.InputButton.Right)
            {
                m_chatWndView.ToggleHideWindow();
            }
        }