Beispiel #1
0
        public void GetMediaItems(IList <Motive.Core.Media.MediaItem> items)
        {
            if (LocalizedImage != null)
            {
                LocalizedImage.GetMediaItems(items);
            }

            if (AssetInstance != null && AssetInstance is IMediaItemProvider)
            {
                ((IMediaItemProvider)AssetInstance).GetMediaItems(items);
            }

            if (Attachments != null)
            {
                foreach (var content in Attachments)
                {
                    var mediaProvider = content as IMediaItemProvider;

                    if (mediaProvider != null)
                    {
                        mediaProvider.GetMediaItems(items);
                    }
                }
            }
        }
 public void GetMediaItems(IList <MediaItem> items)
 {
     if (LocalizedImage != null)
     {
         LocalizedImage.GetMediaItems(items);
     }
 }
Beispiel #3
0
        public virtual void GetMediaItems(IList <Motive.Core.Media.MediaItem> items)
        {
            var provider = Minigame as IMediaItemProvider;

            if (provider != null)
            {
                provider.GetMediaItems(items);
            }

            if (LocalizedImage != null)
            {
                LocalizedImage.GetMediaItems(items);
            }
        }
    private void OnEnable()
    {
        myController = (LocalizedImage)target;

        UpdateLanguage();
    }