private void Awake() { // Assign the Animator Component. CharacterAnimator = characterEntity.GetComponent <Animator>(); akd = GetComponentInChildren <ActionKeyDialog>(); string[] arr = { Application.dataPath, "Text", Grid.optionsManager.lang, SceneManager.GetActiveScene().name, DialogueDir }; string dialogPath = string.Join("/", arr); akd.getDialogueFiles(dialogPath); // TODO update dialogue with player's name }
void Awake() { // Assign the Animator Component. CharacterAnimator = characterEntity.GetComponent <Animator>(); // Adjust NPC facing Turn(InitialFacing); // Set the dialogue system akd = GetComponentInChildren <ActionKeyDialog>(); string[] arr = { Application.dataPath, "Text", Grid.optionsManager.lang, SceneManager.GetActiveScene().name, DialogueDirectory }; dialogPath = string.Join("/", arr); akd.getDialogueFiles(dialogPath); }
private void Awake() { akd = GetComponentInChildren <ActionKeyDialog>(); }