Exemplo n.º 1
0
        public void FinishLoading(Action callback)
        {
            if (!IsLoading)
            {
                callback.SafeInvoke();
                return;
            }

            IsLoading = false;
            Informer.Loader.SetActive(false);
            Informer.Fader.color = _colorA1;
            Informer.StartCoroutine(FadeCoroutine(Informer.Fader, _colorA0, AnimationTime, () =>
            {
                SetActive(false);
                callback.SafeInvoke();
            }));
        }
Exemplo n.º 2
0
        public void StartLoading(Action callback)
        {
            if (IsLoading)
            {
                callback.SafeInvoke();
                return;
            }

            IsLoading = true;
            SetActive(true);

            Informer.Loader.SetActive(false);
            Informer.Fader.color = _colorA0;
            Informer.StartCoroutine(FadeCoroutine(Informer.Fader, _colorA1, AnimationTime, () =>
            {
                Informer.Loader.SetActive(true);
                callback.SafeInvoke();
            }));
        }