Example #1
0
        // Loads book images from library
        private void Start()
        {
            List <BookInfo> booksInfo = BookInfoMapper.DeserializeAll();

            foreach (var bookInfo in booksInfo)
            {
                if (File.Exists(bookInfo.thumbnailPath))
                {
                    sprites.Add(Generators.GenSpriteFromImg(bookInfo.thumbnailPath));
                }
            }

            if (sprites.Count > 0)
            {
                DisplayedImage.sprite = sprites.ElementAt(0);
            }
            // todo handle if no books added to library - replace selection with link to import books?
            // todo use default image with book title if no thumbnail exists
        }
Example #2
0
        private void Start()
        {
            List <BookInfo> booksInfo = BookInfoMapper.DeserializeAll();

            Debug.Log("");
        }