示例#1
0
 public void CardUpScale(GObject go)
 {
     go.TweenScale(new Vector2(0.95f, 0.95f), 1f).SetEase(Ease.OutQuad).OnComplete(() =>
     {
         go.TweenScale(new Vector2(1.0f, 1.0f), 1f).SetEase(Ease.OutQuad).OnComplete(() =>
         {
             CardUpScale(go);
         });
     });
 }
示例#2
0
 public void TweenJump(GObject go, float time)
 {
     go.TweenScale(new Vector2(1f, 0.8f), time / 2).OnComplete(() =>
     {
         go.TweenScale(new Vector2(1f, 1f), time / 2).OnComplete(() =>
         {
             TweenJump(go, time);
         });
     });
 }
示例#3
0
 public void TweenHuXi(GObject go, float time)
 {
     go.TweenScale(new Vector2(0.8f, 0.8f), time / 2).OnComplete(() =>
     {
         go.TweenScale(new Vector2(1f, 1f), time / 2).OnComplete(() =>
         {
             TweenHuXi(go, time);
         }).SetEase(Ease.OutQuad);
     }).SetEase(Ease.OutQuad);
 }
示例#4
0
    private void List_Render1(int index, GObject ss)
    {
        ComCard go = ss.asCom.GetChild("n0") as ComCard;

        go.ClearTime();
        ss.pivot = new Vector2(0.5f, 0.5f);
        if (cardMove)
        {
            ss.scale = new Vector2(1.25f, 1.25f);
            ss.alpha = 0;
            ss.TweenScale(new Vector2(1f, 1f), 0.1f).SetDelay(index * 0.05f).OnStart(() => {
                ss.alpha = 1;
            });
        }
        go.onClick.Clear();
        go.onClick.Add(() =>
        {
            this.onListItemClick1(index);
            //point = ss.LocalToGlobal(new Vector2(ss.x, ss.y));
            //Debug.LogError(point);
            v2 = Stage.inst.touchPosition;
        });
        string id = (cardModel.getDataMyTeamData(c1.selectedIndex) [(index)]).ToString();

        go.SetData(id);
        if (doudoduodu)
        {
            isMove = true;
            LeenTwennOne(go);
        }
    }
示例#5
0
    private void GetReward(VoHttp vo)
    {
        float timessssss = 0.3f;

        if (!nowGift.ContainsKey(Config.ASSET_BODY))
        {
            back = false;
            ViewManager.inst.ShowIcon(nowGift, () =>
            {
                userModel.UpdateData(vo.data);
                back = true;
            });
        }

        EffectManager.inst.SetFilterAdjustBrightness(moveGo, timessssss, 0f, 1f);
        moveGo.TweenScale(new Vector2(1.15f, 1.15f), timessssss).OnComplete(() =>
        {
            EffectManager.inst.SetFilterAdjustBrightness(moveGo, timessssss, 1f, 0f);
            moveGo.TweenScale(new Vector2(0.7f, 0.7f), 0.4f);
            ball.width  = moveGo.width;
            ball.height = moveGo.height;
            ball.x      = moveGo.x;
            ball.y      = moveGo.y;
            float c     = 1;
            DOTween.To(() => c, x => c = x, 0, 0.4f).OnUpdate(() =>
            {
                moveGo.alpha = c;
            }).OnComplete(() =>
            {
                items.Remove(moveGo.asCom);
                this.RemoveChild(moveGo);
                MoveList();
            });
            ball.TweenScale(new Vector2(0.7f, 0.7f), 0.4f);
            ball.visible = true;
            ball.alpha   = 0;
            float b      = ball.width;
            DOTween.To(() => b, x => b = x, 100, 0.4f).OnUpdate(() =>
            {
                ball.width = b;
            });
            float d = ball.height;
            DOTween.To(() => d, x => d = x, 100, 0.4f).OnUpdate(() =>
            {
                ball.height = d;
            }).OnComplete(() =>
            {
                ball.TweenScale(new Vector2(0.3f, 0.3f), timessssss);
            });
            float f = 0;
            DOTween.To(() => f, x => f = x, 1, 0.7f).OnUpdate(() =>
            {
                ball.alpha = f;
            }).OnComplete(() =>
            {
                EffectManager.inst.Bezier(ball, 0.4f, ball.xy, new Vector2(500f, -100f), new Vector2(pro.x - 30f + (pro.value * 47f), pro.y - 37f), () =>
                {
                    ball.visible = false;
                    NetHttp.inst.Send(NetBase.HTTP_GETEFFORT, "", OnChangeEff);
                });
            });
        });
    }