BattleResultComp.cs 366 B

1234567891011121314151617181920212223
  1. using TMPro;
  2. using UnityEngine;
  3. namespace Comp
  4. {
  5. public class BattleResultComp : MonoBehaviour
  6. {
  7. public TextMeshProUGUI textValue;
  8. public string tag;
  9. public void SetValue(string value)
  10. {
  11. textValue.text = value;
  12. }
  13. public bool IsWin()
  14. {
  15. return tag == "win";
  16. }
  17. }
  18. }