using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class MonumentPreview : MonoBehaviour { [SerializeField] private Image _image; [SerializeField] private UITextShow _UITextShow; [SerializeField] private UIFader _UIFader; [SerializeField] private TMPro.TextMeshProUGUI _nameText; public void ShowInfo(MonumentInfo monumentInfo) { _nameText.SetText(monumentInfo.Name); _image.sprite = monumentInfo.Image; _UITextShow.ShowSubtitle(monumentInfo.Description, 0, 5f, _UIFader.ShowPanel, _UIFader.HidePanel); } }