| 12345678910111213141516171819202122232425 |
- 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);
- }
- }
- }
|