Beispiel #1
0
    public override void InitData(object[] args)
    {
        base.InitData(args);

        _circle.transform.localScale           = Vector3.zero;
        _jiayu.transform.localPosition         = new Vector3(116f, 80f, 0f);
        _entertainment.transform.localPosition = new Vector3(26f, -25f, 0f);
        InitColor(_jiayu);
        InitColor(_entertainment);
        InitColor(_fangkuai);
        InitColor(_meihua);
        InitColor(_hongtao);
        InitColor(_heitao);

        DoTweenHelper.DoScale(_circle.transform, Vector3.one, 0.7f, Ease.Flash, null);
        var splashRotation = _circle.GetComponent <SplashRotation>();

        splashRotation.RotateTime = 0.7f;
        splashRotation.StartRotate();

        //0.2+0.2+0.1+0.1+0.1+0.1 = 0.8f
        DoFadeAndMove(_jiayu, 0.2f, 0.2f, new Vector3(116f, 36f, 0f), () =>
        {
            DoFadeAndMove(_entertainment, 0.2f, 0.2f, new Vector3(26f, -55f, 0f), () =>
            {
                Sequence seq = DOTween.Sequence();
                seq.Append(DoTweenHelper.DoFade(_fangkuai, 1, 0.1f, Ease.Flash, null))
                .Append(DoTweenHelper.DoFade(_meihua, 1, 0.1f, Ease.Flash, null))
                .Append(DoTweenHelper.DoFade(_hongtao, 1, 0.1f, Ease.Flash, null))
                .Append(DoTweenHelper.DoFade(_heitao, 1, 0.1f, Ease.Flash, () =>
                {
                    //StartCoroutine(DelayEnterGame(1f));
                    EnterGame();
                }));
            });
        });

        AudioManager.instance.PlayAudio(EAndioType.Bg, "bg_hall");
    }
Beispiel #2
0
    public override void InitData(object[] args)
    {
        base.InitData(args);

        DoTweenHelper.DoScale(_popWindow.transform, Vector3.one, 0.5f, Ease.OutBack, null);
    }