修改 NPC 交互方式
This commit is contained in:
parent
c64d8daf2f
commit
a78f37d7ca
|
@ -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) =>
|
||||
|
|
Loading…
Reference in New Issue