Get Dialog controller from GM
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user