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