误删部分

This commit is contained in:
2025-01-15 11:40:13 +08:00
parent 5158e66638
commit 045d6273f2
3 changed files with 25 additions and 1 deletions
@@ -12,6 +12,7 @@ namespace AibisDream.FixSystem
private TMP_Text _state; // 显示状态的TextMeshPro组件
private TMP_Text _screenText;// 显示消息的TextMeshPro组件
private SpriteButton _deepinButton;
private BodyModuleSystem _bodyModuleSystem;
#endregion
@@ -35,6 +36,8 @@ namespace AibisDream.FixSystem
_state = transform.Find("Screen State Text").GetComponent<TMP_Text>();
_deepinButton = new SpriteButton(transform.Find("Deepin Button").gameObject, false);
MessageBoxSetNull();
_deepinButton.OnButtonDown += HandleDeepInButtonClick;
}
private void Update()
@@ -50,6 +53,11 @@ namespace AibisDream.FixSystem
// _screenText.color = Color.white; // 默认文本颜色
}
private void HandleDeepInButtonClick()
{
_bodyModuleSystem.HandleDeepIn();
}
public void MessageBoxSetWarning()
{
_state.text = "警告";