12345678910111213141516171819202122232425262728293031323334353637 |
- using SC.XR.Unity;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using TMPro;
- using static LangChaoJiekou;
- public class XunJianException : MonoBehaviour
- {
- public SCInputField scInput;
- public List<XunJianErrorBtn> listErrorBtn;
- public void SetText(TMP_Text text)
- {
- scInput.text += text.text;
- scInput.onValueChanged.AddListener(( v) =>
- {
- XunJianInitialize.Instance.xjDetails.isUpdata = true;
- });
- }
- public void InitData( RoomItem data )
- {
- for (int i = 0; i < listErrorBtn.Count; i++)
- {
- listErrorBtn[i].gameObject.SetActive(false);
- }
- for (int i = 0; i < data.errorList.Count; i++)
- {
- listErrorBtn[i].gameObject.SetActive(true);
- listErrorBtn[i].SetName(data.errorList[i].itemErrorName);
- }
- }
- }
|