将物品交互弹窗的打开关闭逻辑修改以解决

关闭后因为按下E重新打开的问题
在关闭状态下无法再打开的问题

Signed-off-by: Eicy <im@crash.work>
This commit is contained in:
2024-10-14 15:39:15 +08:00
parent c5192ae3ec
commit 3a74806d8c
5 changed files with 4 additions and 6 deletions

View File

@@ -492,7 +492,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &143509930
RectTransform:
m_ObjectHideFlags: 0

View File

@@ -1,6 +1,5 @@
using Event;
using Event.EventArgs;
using Keyboard;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -37,12 +36,11 @@ namespace Dialog
}
//todo
/*private void Update()
private void Update()
{
if ((!panel.activeSelf || !Input.GetKeyDown(KeyCode.Escape)) &&
!Input.GetKeyDown(KeySettingManager.Instance.GetKey("InterAct"))) return;
if ((!panel.activeSelf || !Input.GetKeyDown(KeyCode.Escape)) && Time.timeScale == 0 ) return;
Time.timeScale = 1;
panel.SetActive(false);
}*/
}
}
}