误删部分
This commit is contained in:
@@ -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 = "警告";
|
||||
|
||||
Reference in New Issue
Block a user