using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; namespace AppUI.Util.Group { public class SelectItem : MonoBehaviour { [SerializeField] TMP_Text text; [SerializeField] Image switcher; public void SetData(string content, bool selected) { text.text = content; switcher.enabled = selected; text.color = selected ? Color.black : new Color(0.37f, 0.37f, 0.37f); } } }