Esempio n. 1
0
        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
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private void Awake()
 {
     akd = GetComponentInChildren <ActionKeyDialog>();
 }