Пример #1
0
        private void OnGifLoaded(List <Texture2D> frames)
        {
            if (frames == null)
            {
                return;
            }

            fAnimation.Refresh(frames);
            fAnimation.Play();
            showLoading = false;
        }
Пример #2
0
        private void OnGifLoaded(List <Texture2D> frames)
        {
            progressBar.gameObject.SetActive(false);

            if (frames == null)
            {
                return;
            }

            var newFrames = frames.ConvertAll(item => { return(item as Texture); });

            fAnimation.SetFrames(newFrames);
            fAnimation.Play();
        }