2023-10-02 19:12:35 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
public class MonumentPreview : MonoBehaviour
|
|
|
|
{
|
|
|
|
[SerializeField] private Image _image;
|
|
|
|
[SerializeField] private UITextShow _UITextShow;
|
|
|
|
|
|
|
|
public void ShowInfo(MonumentInfo monumentInfo)
|
|
|
|
{
|
|
|
|
_image.sprite = monumentInfo.Image;
|
2023-10-10 15:03:37 +03:00
|
|
|
_UITextShow.ShowSubtitle(monumentInfo.Description, 0, 5f, null, null);
|
2023-10-02 19:12:35 +03:00
|
|
|
}
|
|
|
|
}
|