mirror of
https://github.com/Bragin-Stepan/project-entity.git
synced 2026-03-05 07:41:10 +00:00
init: add project
This commit is contained in:
17
Assets/_Project/Develop/Runtime/UI/Common/IconTextView.cs
Normal file
17
Assets/_Project/Develop/Runtime/UI/Common/IconTextView.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user