示例#1
0
        protected override void Awake()
        {
            base.Awake();

            ShowTween.Kill();
            ShowTween = DOTween.Sequence().SetAutoKill(false).Pause()
                        .Append(Radius0.transform.DOScale(Radius0.transform.localScale * 1.6f, 0.5f).SetEase(Ease.Linear))
                        .Join(Radius1.transform.DOScale(Radius0.transform.localScale * 1.6f, 0.5f).SetEase(Ease.Linear))
                        .Join(Radius0.DOFade(1, 0.1f))
                        .Join(Radius1.DOFade(1, 0.1f))
                        .Insert(0.2f, Radius0.DOFade(0, 0.3f))
                        .Join(Radius1.DOFade(0, 0.3f))
                        .OnRewind(() => { this.gameObject.SetActive(false); })
                        .OnComplete(() =>
            {
                this.gameObject.SetActive(false);
                this.transform.parent = DefParent;
            });
        }
        protected override void Awake()
        {
            base.Awake();

            awakeDone = true;

            ShowTween.Kill();
            Img.transform.localScale = setImgSize;
            Img.SetAlpha(0);
            ShowTween = DOTween.Sequence().SetAutoKill(false).Pause()
                        .Append(Img.DOFade(1, 0.2f))
                        .Join(this.transform.DOPunchScale(Vector3.one * 0.4f * TutorialUI.GetCameraBasedScaleMultiplier(this.transform.position), 0.4f, 10, 0))
                        .Join(this.transform.DOPunchRotation(new Vector3(0, 0, 30), 0.4f))
                        .Append(Img.transform.DOLocalRotate(new Vector3(0, 0, -10), 0.7f).SetEase(Ease.Linear))
                        .Insert(0.8f, this.transform.DOScale(0.0001f, 0.3f).SetEase(Ease.InBack))
                        .OnComplete(() => {
                this.gameObject.SetActive(false);
                this.transform.parent = DefParent;
            });
        }