Example #1
0
    //팝업이 켜져있을 때에는 아래 레이어로 연결되지 않도록 한다.
    public void OnDrag(PointerEventData e)
    {
        if (!GO_Overview.activeSelf && !GO_Card1Detail.activeSelf && !GO_Loading.activeSelf)
        {
            if (!PG.IsTweening)
            {
                SR.OnDrag(e);
                PG.OnDrag(e);

                // CD.OnDrag (e);
                currentY = e.position.y;                 //현재 포지션 추출
                movedY   = currentY - pressedY;          //총 이동거리 추출
                //print (e.delta.y);

                if (!isBarFixed)
                {
                    //dragUp
                    if (e.delta.y > BarThreshold)
                    {
                        if (!dragUp)
                        {
                            dragUp = true; BarHide();
                        }
                    }
                    //dragDown
                    if (e.delta.y < -BarThreshold)
                    {
                        if (dragUp)
                        {
                            dragUp = false; BarShow();
                        }
                    }
                }
            }
        }
    }