Пример #1
0
        public void ShowClear()
        {
            stageText.enabled = true;
            ActivateLevelText(false);
            stageText.text = $"";
            DOTween.Sequence()
            .AppendInterval(CommonViewConfig.FADE_TIME)
            .Append(stageText
                    .DOText($"game clear", CommonViewConfig.LOAD_INTERVAL * 0.5f)
                    .SetEase(Ease.Linear));

            _seController.DelayPlaySeAsync(SeType.GameClear, CommonViewConfig.FADE_TIME, _token).Forget();
        }
Пример #2
0
        public async UniTask FadeInAsync(CancellationToken token)
        {
            var delayTime = CommonViewConfig.FADE_TIME - 0.1f;

            _seController.DelayPlaySeAsync(SeType.Transition, delayTime, token).Forget();

            up.sizeDelta   = new Vector2(320.0f, 181.0f);
            down.sizeDelta = new Vector2(320.0f, 181.0f);

            await DOTween.Sequence()
            .Append(up
                    .DOAnchorPosY(0.0f, CommonViewConfig.FADE_TIME))
            .Join(down
                  .DOAnchorPosY(0.0f, CommonViewConfig.FADE_TIME))
            .WithCancellation(token);
        }
Пример #3
0
        public async UniTaskVoid ShowAsync(CancellationToken token)
        {
            textColorAnimator.Play();

            var delayTime = CommonViewConfig.FADE_TIME - 0.1f;

            _seController.DelayPlaySeAsync(SeType.Transition, delayTime, token).Forget();

            await(
                leftSide
                .DOAnchorPosX(80.0f, CommonViewConfig.FADE_TIME)
                .SetEase(Ease.InQuart)
                .WithCancellation(token),
                rightSide
                .DOAnchorPosX(-80.0f, CommonViewConfig.FADE_TIME)
                .SetEase(Ease.InQuart)
                .WithCancellation(token)
                );

            await UniTask.Delay(TimeSpan.FromSeconds(CommonViewConfig.FADE_TIME), cancellationToken : token);

            await clearText
            .DOAnchorPosY(35.0f, CommonViewConfig.FADE_TIME)
            .SetEase(Ease.Linear)
            .WithCancellation(token);

            await UniTask.Delay(TimeSpan.FromSeconds(CommonViewConfig.FADE_TIME), cancellationToken : token);

            foreach (var nextButtonView in _nextButtonViews)
            {
                _seController.PlaySe(SeType.PopButton);
                nextButtonView.SetInteractable(true);
                nextButtonView.FadeOut();
                await UniTask.Delay(TimeSpan.FromSeconds(0.1f), cancellationToken : token);
            }

            ActivateAllButton(true);
        }