The player character movement is disabled during dialogue

This commit is contained in:
2026-08-15 16:14:02 +02:00
parent 86614f3104
commit be63c21e15
2 changed files with 18 additions and 2 deletions
@@ -1,3 +1,4 @@
using StarterAssets;
using UnityEngine;
using Yarn.Unity;
@@ -39,7 +40,10 @@ namespace NightclubArcadia.Dialogue
void StartConversation()
{
playerArmature.SetActive(false);
var playerController = playerArmature.GetComponent<ThirdPersonController>();
if (playerController != null)
playerController.enabled = false;
dialogueUI.SetActive(true);
dialogueRunner.StartDialogue(yarnNodeName);
}