using Newtonsoft.Json.Linq; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Assets.Scripts { public class Book : Item { public Book(int luck) : base(luck) { itemName = "The kings diary #1"; loadImage(); rarityColor = Color.white; } public Book(JToken json) : base(json) { } override protected void loadImage() { image = Resources.Load("Items/Inv_Book"); } } }