Adding in the characters

Added debug buttons to cycle through the characters
Bug fixes
This commit is contained in:
Amaan Shawkath
2023-07-08 18:50:49 +01:00
committed by Minzkraut
parent 988621b810
commit c55f67606d
13 changed files with 752 additions and 42 deletions

View File

@@ -42,6 +42,12 @@ public class DialoguePanel : MonoBehaviour
{
Cleanup();
if (m_characterSheet != null)
{
// Clear the old sheet
m_characterSheet.gameObject.SetActive(false);
}
m_questionsAsked = 0;
m_currentCharacter = characterData;
m_characterNameText.text = characterData.name;
@@ -52,6 +58,7 @@ public class DialoguePanel : MonoBehaviour
m_characterSheet.SetName(characterData.name);
m_characterSheet.gameObject.SetActive(true);
m_questionHolder.gameObject.SetActive(true);
gameObject.SetActive(true);
}