コード例 #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
        }
コード例 #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);
        }
コード例 #3
0
 private void Awake()
 {
     akd = GetComponentInChildren <ActionKeyDialog>();
 }