using TMPro; using UnityEngine; namespace AibisDream.FixSystem { public class OscilloscopeSystem : MonoBehaviour { #region 组件索引 private BodyModuleSystem _bodyModuleSystem; private TMP_Text _screenText; #endregion private void Awake() { InitComponentRefs(); } private void InitComponentRefs() { _screenText = transform.Find("Screen Text").GetComponent(); // TODO 回头找个IOC容器一起管 _bodyModuleSystem = FindObjectOfType(); _screenText.text = ""; } /// /// 显示消息 /// /// public void ShowScreenMessage(string message) { _screenText.text = message; } /// /// 清除消息 /// public void ClearScreenMessage() { _screenText.text = ""; } } }