From 37618e6e39aa58130f4237995753bcf202da136a Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Mon, 1 Jun 2026 15:24:23 +0800 Subject: 完成单向门,并且修复了门不能再次关闭的BUG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs') diff --git a/Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs b/Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs index efc5e5f..c016ad9 100644 --- a/Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs +++ b/Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs @@ -18,6 +18,8 @@ namespace SoulCoreGameLoop.UI private void OnTriggerEnter(Collider other) { + if (! other.CompareTag("Player")) return; + Debug.Log("AreaHintGenerator OnTriggerEnter"); // 向监听器发送消息 UIEventListener.Send(new AreaHintMessage(name)); -- cgit