feat(Edit): 现在玩家按E可以直接对可编辑物体进行编辑

This commit is contained in:
2025-10-21 13:41:51 +08:00
parent d3eed0945c
commit f71ef8cae9
4 changed files with 70 additions and 100 deletions

View File

@@ -48,14 +48,14 @@ namespace Script.Gameplay.Facility
{
// 逆时针旋转90度
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, -90, 0));
Debug.Log("Open door");
// Debug.Log("Open door");
}
private void CloseDoor()
{
// 顺时针旋转90度
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + new Vector3(0, 90, 0));
Debug.Log("Close door");
// Debug.Log("Close door");
}
#endregion