using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Troubleshooting : MonoBehaviour { /// /// 重启按钮 /// public Button Rebootbt; /// /// 故障面板 /// public GameObject TroubleshootingPanel; void Start() { Rebootbt.onClick.AddListener(() => { Control_Tv.Instance.AudiosTalk("开电视"); Control_Tv.Instance.Tv.GetComponent().enabled = true; TroubleshootingPanel.SetActive(false); }); } void Update() { } }