public void OnUpdateAtlas(object val)
        {
            var key = val == null ? string.Empty : val.ToString();

            if (string.IsNullOrEmpty(key))
            {
                this.loadedAtlas = this.atlas;
                TryResolveImage();
            }
            else
            {
                UIManAssetLoader.Load <SpriteAtlas>(key, OnLoadedAtlas);
            }
        }
Beispiel #2
0
        public void OnUpdateImage(object newImage)
        {
            var key = newImage == null ? string.Empty : newImage.ToString();

            if (string.IsNullOrEmpty(key))
            {
                this.image.sprite = null;
                SetAlpha();
            }
            else
            {
                UIManAssetLoader.Load <Sprite>(key, OnLoadedImage);
            }
        }