added dialogue manager and radar

This commit is contained in:
2026-02-18 13:53:02 +00:00
parent e1df65bce2
commit 23362e7bdd
11 changed files with 915 additions and 3 deletions

View File

@@ -77,9 +77,13 @@ public class FirstPersonController : MonoBehaviour
controller.Move(new Vector3(0f, velocity.y, 0f) * Time.deltaTime);
bool inventoryOpen = inventory != null && inventory.IsOpen;
if (!inventoryOpen)
bool dialogueOpen = DialogueManager.Instance != null && DialogueManager.Instance.IsOpen;
if (!inventoryOpen && !dialogueOpen)
HandleMouseLook();
// Freeze movement during dialogue
if (dialogueOpen) return;
if (Input.GetKeyDown(KeyCode.Escape))
{
Cursor.lockState = CursorLockMode.None;