Merge Journal, Quest and Dialog systems

This commit is contained in:
Minz committed 2023-07-08 22:00:16 +02:00
1 parent 8ed8fcd04f
commit 8210ef30ac
12 files changed
+1849 -84

No files matched your search

@@ -8,17 +8,20 @@ public class DialogueController : MonoBehaviour
private int m_currentIndex = 0;
public bool DialogueInProgress => m_dialoguePanel.gameObject.activeSelf;
// DEBUG - Will need replacing with the character you selected.
private void Start()
{
DisplayCharacterText(CharacterManager.Instance.CharacterDatas[m_currentIndex]);
//DisplayCharacterText(CharacterManager.Instance.CharacterDatas[m_currentIndex]);
m_dialoguePanel.OnQuestionsFinished += OnQuestionsFinished;
}
public void DisplayCharacterText(CharacterData character)
{
m_dialoguePanel.Setup(character);
m_dialoguePanel.Setup(character);
}
public void OnQuestionsFinished(string characterName)
@@ -27,6 +30,7 @@ public class DialogueController : MonoBehaviour
CharacterManager.Instance.SetInterviewed(characterName);
PlayerController.Instance.cameraMovement = true;
// TODO: stop the dialogue and return to gameplay...
// TODO: we could probably show a "Quit" button highlighted.
}