added dialogue manager and radar
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user