예제 #1
0
    IEnumerator FadeOutRoutine(FadeCallBack fadeCallBack)
    {
        isFading = true;
        yield return(UIAnimator.Color(coverObj, Vector4.zero, Color.black, fadeSpeed * 2));

        fadeCallBack();
    }
예제 #2
0
    public void FadeOutAndInCallBack(float fadeInDuration, float interDuration, float fadeOutDuration, FadeCallBack callBack)
    {
        _fadeOutDuration = fadeOutDuration;
        _fadeInDuration  = fadeInDuration;
        _interDuration   = interDuration;
        _timer           = 0;
        _direction       = -1;
        Background.alpha = 0;

        _onFadeOutDone     = callBack;
        _callBackRequested = true;
    }