Example #1
0
    private void SetPatronName(Constants.Character character)
    {
        string patronName  = Constants.characterNames[character];
        string patronColor = Constants.characterColor[character];

        nameText.text = "<color=#" + patronColor + ">" + patronName + "</color>";
    }
    private void Start()
    {
        controller = GetComponent <DialogueController>();
        textRunner = GetComponent <DialogueTextRunner>();

        controller.onEnteredNode += OnNodeEntered;
        controller.InitializeDialogue(GameRunner.instance.data.patronDialogue);

        textRunner.onSelectedChoice += OnNodeSelected;
        Constants.Character character = Constants.characters[GameRunner.instance.data.patronDialogue.character];
        textRunner.Init(character);
    }
Example #3
0
 public void Init(Constants.Character character)
 {
     SetPatronName(character);
 }