XunJianErrorBtn.cs 517 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using TMPro;
  5. using UnityEngine.UI;
  6. public class XunJianErrorBtn : MonoBehaviour
  7. {
  8. public TMP_Text nameText;
  9. public Button errorBtn;
  10. private void Start()
  11. {
  12. errorBtn = GetComponent<Button>();
  13. errorBtn.onClick.AddListener(() =>
  14. {
  15. XunJianInitialize.Instance.xjDetails.isUpdata = true;
  16. });
  17. }
  18. public void SetName( string name)
  19. {
  20. nameText.text = name;
  21. }
  22. }