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); }
public void Init(Constants.Character character) { SetPatronName(character); }