예제 #1
0
    private void Update()
    {
        if (!Input.GetMouseButton(0) || Input.GetMouseButtonUp(0))
        {
            OnEndDrag();
            return;
        }

        if (Input.GetMouseButtonDown(0) && Utils.IsPointOverGameObject(containerScrollView))
        {
            if (ContainerManager.CheckPointOnAnyDisplayObject())
            {
                return;
            }
            OnBeginDrag();
            return;
        }

        if (_selectGameObject && _selectGameObject.activeSelf)
        {
            OnDrag();
        }
        else
        {
            OnEndDrag();
        }
    }