Character panel tweaks #7
@@ -29,10 +29,9 @@ public class DialogueController : MonoBehaviour
|
||||
Debug.Log($"DialogueController: Character {characterName} finished interviewing");
|
||||
|
||||
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.
|
||||
|
||||
m_dialoguePanel.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public void Debug_NextCharacter()
|
||||
|
||||
@@ -57,9 +57,18 @@ public class DialoguePanel : MonoBehaviour
|
||||
m_characterText.text = "Select an option...";
|
||||
|
||||
SetupCharacterSheet();
|
||||
|
||||
if (CharacterManager.Instance.CharacterInterviewed(characterData.name))
|
||||
{
|
||||
m_characterSheet.SetName(characterData.name);
|
||||
m_characterSheet.gameObject.SetActive(true);
|
||||
|
||||
// Hide the dialogue panel.
|
||||
gameObject.SetActive(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
m_questionIndexAsked.Clear();
|
||||
m_questionHolder.gameObject.SetActive(true);
|
||||
gameObject.SetActive(true);
|
||||
|
||||
Reference in New Issue
Block a user