Get Dialog controller from GM

This commit is contained in:
2023-07-09 11:11:24 +02:00
parent 9114b0a5fa
commit 68fdc026de

View File

@@ -4,7 +4,6 @@ using UnityEngine;
public class AdventurerInteractable : MonoBehaviour
{
public DialogueController dialogueController;
public int m_spawnQuestID = 0;
[SerializeField] private string m_name = string.Empty;
@@ -24,6 +23,6 @@ public class AdventurerInteractable : MonoBehaviour
{
PlayerController.Instance.cameraMovement = false;
CharacterData character = CharacterManager.Instance.GetCharacterDataByName(m_name);
dialogueController.DisplayCharacterText(character);
GameManager.Instance.dialogueController.DisplayCharacterText(character);
}
}