mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 15:51:10 +00:00
18 lines
445 B
C#
18 lines
445 B
C#
using _Project.Develop.Runtime.UI.Core;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace _Project.Develop.Runtime.UI.Common
|
|
{
|
|
public class IconTextView : MonoBehaviour, IView
|
|
{
|
|
[SerializeField] private TMP_Text _text;
|
|
[SerializeField] private Image _icon;
|
|
|
|
public void SetText(string text) => _text.text = text;
|
|
|
|
public void SetIcon(Sprite icon) => _icon.sprite = icon;
|
|
}
|
|
}
|