3 Commits

Author SHA1 Message Date
Amaan Shawkath
bbcb6861c8 Hiding dialogue once its finished 2023-07-08 21:33:03 +01:00
Amaan Shawkath
6baef62be1 Updated character sheet so it only displays when the dialogue has been completed 2023-07-08 21:32:46 +01:00
Amaan Shawkath
e2e4f55caa Merge pull request #6 from JanGross/start_scene_and_tweak
Start scene and tweak
2023-07-08 21:19:32 +01:00
2 changed files with 13 additions and 5 deletions

View File

@@ -29,10 +29,9 @@ public class DialogueController : MonoBehaviour
Debug.Log($"DialogueController: Character {characterName} finished interviewing"); Debug.Log($"DialogueController: Character {characterName} finished interviewing");
CharacterManager.Instance.SetInterviewed(characterName); CharacterManager.Instance.SetInterviewed(characterName);
PlayerController.Instance.cameraMovement = true; PlayerController.Instance.cameraMovement = true;
// TODO: stop the dialogue and return to gameplay...
// TODO: we could probably show a "Quit" button highlighted. m_dialoguePanel.gameObject.SetActive(false);
} }
public void Debug_NextCharacter() public void Debug_NextCharacter()

View File

@@ -57,9 +57,18 @@ public class DialoguePanel : MonoBehaviour
m_characterText.text = "Select an option..."; m_characterText.text = "Select an option...";
SetupCharacterSheet(); SetupCharacterSheet();
if (CharacterManager.Instance.CharacterInterviewed(characterData.name))
{
m_characterSheet.SetName(characterData.name); m_characterSheet.SetName(characterData.name);
m_characterSheet.gameObject.SetActive(true); m_characterSheet.gameObject.SetActive(true);
// Hide the dialogue panel.
gameObject.SetActive(false);
return;
}
m_questionIndexAsked.Clear(); m_questionIndexAsked.Clear();
m_questionHolder.gameObject.SetActive(true); m_questionHolder.gameObject.SetActive(true);
gameObject.SetActive(true); gameObject.SetActive(true);