using TMPro; using UnityEngine; namespace Comp { public class BattleResultComp : MonoBehaviour { public TextMeshProUGUI textValue; public string tag; public void SetValue(string value) { textValue.text = value; } public bool IsWin() { return tag == "win"; } } }