aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-06-01 15:24:23 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-06-01 15:24:53 +0800
commit37618e6e39aa58130f4237995753bcf202da136a (patch)
tree1bbce8334ee3816ef97979a512149264d470ea09 /Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs
parent442871d59f5a403616eeaa7e72bee40a17c77258 (diff)
完成单向门,并且修复了门不能再次关闭的BUG
Diffstat (limited to 'Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs')
-rw-r--r--Assets/Scripts/SoulCoreGameLoop/UI/AreaHintGenerator.cs2
1 files changed, 2 insertions, 0 deletions
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));