Example #1
0
    public void OpenCard1()
    {
        SV.BarHide();
        pulldown       = true;
        IsCardOpenable = false;
        RT_CardHead.DOAnchorPosY(1000f, OpenDura);
        RT_CardTail.DOAnchorPosY(-6500f, OpenDura);

        RT_Mask.DOSizeDelta(new Vector2(1080f, 1200f + 4382f), OpenDura).SetEase(OpenEase);
        RT_Card1Body.DOScale(Vector3.one, OpenDura).SetEase(OpenEase);
        RT_Card1Body.DOAnchorPosY(-1200f, OpenDura).SetEase(OpenEase);
        CG_Card1Body.DOFade(1f, OpenDura).SetEase(OpenEase);

        RT_Redbg.DOScaleX(1.3f, OpenDura).SetEase(OpenEase);
        RT_Shadow.DOScaleX(1.3f, OpenDura).SetEase(OpenEase);
        CG_Shadow.DOFade(0f, OpenDura).SetEase(OpenEase);
        // RT_Redbg.DOAnchorPos (new Vector2 ((TargetPosX_Redbg), (-RT_Contents.anchoredPosition.y - RT_Card1.anchoredPosition.y - OrigPos_Redbg.y - TargetPosY_Redbg)), OpenDura);
        //다 튀어나와서 TargetContents의 자식으로 들어간다.
        Card1Detail.SetActive(true);
        TargetContents = GameObject.Find("TargetContents");

        RT_Redbg.transform.SetParent(TargetContents.transform);
        RT_Redbg.DOAnchorPos(new Vector2(TargetPosX_Redbg, TargetPosY_Redbg), OpenDura).SetEase(OpenEase);
        RT_Maintext.transform.SetParent(TargetContents.transform);
        RT_Maintext.DOAnchorPos(new Vector2(TargetPosX_Maintext, TargetPosY_Maintext), OpenDura).SetEase(OpenEase);
        RT_Subtext.transform.SetParent(TargetContents.transform);
        RT_Subtext.DOAnchorPos(new Vector2(TargetPosX_Subtext, TargetPosY_Subtext), OpenDura).SetEase(OpenEase);
        RT_Subsbtn.transform.SetParent(TargetContents.transform);
        RT_Subsbtn.DOAnchorPos(new Vector2(TargetPosX_Subsbtn, TargetPosY_Subsbtn), OpenDura).SetEase(OpenEase);
        RT_Graphic.transform.SetParent(TargetContents.transform);
        RT_Graphic.DOAnchorPos(new Vector2(TargetPosX_Graphic, TargetPosY_Graphic), OpenDura).SetEase(OpenEase).OnComplete(() => {
            //X버튼 등장
            BT_Xbutton.gameObject.SetActive(true);
            RT_Card1Body.DOAnchorPosY(-1200f, OpenDura).SetEase(OpenEase);
            RT_Card1Body.transform.SetParent(TargetContents.transform);
            CG_Menubar.alpha = 0f;
        });
        print("CARD1 OPEN !!!!!");
    }
Example #2
0
    public void CloseCard1()
    {
        CG_Menubar.alpha = 1f;
        BT_Xbutton.gameObject.SetActive(true);
        CG_Card1Body.DOFade(0f, 0.15f).SetEase(OpenEase).OnComplete(() => {
            // RT_Card1Body.DOAnchorPosY (-500f, 0.05f).SetEase (OpenEase);
            RT_Card1Body.DOScale(new Vector3(0.86f, 0.86f, 0.86f), 0f).SetEase(OpenEase);
            Card1Detail.SetActive(false);
            SV.BarShow();
        });

        TargetContents = GameObject.Find("Card4");
        RT_Redbg.transform.SetParent(TargetContents.transform);
        RT_Redbg.DOAnchorPos(OrigPos_Redbg, OpenDura).SetEase(OpenEase);
        RT_Maintext.transform.SetParent(TargetContents.transform);
        RT_Maintext.DOAnchorPos(OrigPos_Maintext, OpenDura).SetEase(OpenEase);
        RT_Subtext.transform.SetParent(TargetContents.transform);
        RT_Subtext.DOAnchorPos(OrigPos_Subtext, OpenDura).SetEase(OpenEase);
        RT_Subsbtn.transform.SetParent(TargetContents.transform);
        RT_Subsbtn.DOAnchorPos(OrigPos_Subsbtn, OpenDura).SetEase(OpenEase);
        RT_Graphic.transform.SetParent(TargetContents.transform);
        RT_Graphic.DOAnchorPos(OrigPos_Graphic, OpenDura).SetEase(OpenEase);
        RT_Redbg.DOScaleX(1f, OpenDura).SetEase(OpenEase).OnComplete(() => {
            RT_Shadow.DOScaleX(1f, OpenDura).SetEase(OpenEase);
            CG_Shadow.DOFade(1f, OpenDura).SetEase(OpenEase);
            RT_TargetContents.DOAnchorPosY(0f, 0);
        });
        //
        RT_Mask.DOSizeDelta(new Vector2(931f, 1200f), OpenDura).SetEase(OpenEase);

        //

        RT_CardHead.DOAnchorPosY(-275f, 0.2f);
        RT_CardTail.DOAnchorPosY(-5230f, 0.2f);
        IsCardOpenable = true;
    }