修改 NPC 交互方式

This commit is contained in:
YangHua 2024-09-06 13:44:40 +08:00
parent c64d8daf2f
commit a78f37d7ca
1 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,7 @@ public class NPCController : PermanentTriggerBase
protected override void OnMEnter()
{
base.OnMEnter();
if (!isClose) return;
if (GameManager.RunModelMgr.ModeType != E_ModeType.Study)
{
_highlight.SetHighlighted(true);
@ -49,7 +50,14 @@ public class NPCController : PermanentTriggerBase
protected override void OnMDown()
{
base.OnMDown();
if (!isClose) return;
if (!isClose)
{
GameManager.UIMgr.ShowPanel<UI_MiddleTipPanel>(E_UI_Layer.System, (p) =>
{
p.Init($"提示:请靠近交互对象");
});
return;
}
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0)
{
GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) =>