public virtual void SetData(Resource resource) { icon.sprite = LoadResourceController.GetIconResource(resource.type, resource.id); icon.SetNativeSize(); value.text = resource.number.ToString(); }