예제 #1
0
        /// <summary>
        /// Transition in will fade in a black cover over the screen.
        /// </summary>
        protected override void TransitionIn()
        {
            _fade = MathHelper.Clamp(_fade - Time.DeltaTime, 0, 1);

            if (_fade <= 0.0f)
            {
                OnTransitionInComplete?.Invoke();
            }
        }
예제 #2
0
    virtual protected void TransitionInCompleted()
    {
        EnableGamePad();

        _isTransitionComplete = true;

        OnTransitionInComplete?.Invoke();

        // check for mute button
        if (_screenElements.ContainsKey("MuteButton"))
        {
            // LeanTween.alphaCanvas(muteButton.GetComponent<CanvasGroup>(), 1f, 0.75f);
            LeanTween.scale(muteButton, new Vector3(1f, 1f, 1f), 0.55f).setDelay(0.65f)
            .setOvershoot(0.75f)
            .setIgnoreTimeScale(true)
            .setEase(LeanTweenType.easeOutBack)
            .setOnComplete(() => {
            });
        }
    }