The player character movement is disabled during dialogue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user