Example #1
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
    {
        ai          = animator.GetComponent <MyAI>();
        ai.stopMove = true;
        //Debug.Log(dialogue[dialogueIndex]);
        //ai.talkLock = true;

        tree = animator.transform.root.GetComponent <DialogueTreeContainer>();
    }
Example #2
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
    {
        tree = animator.transform.root.GetComponent <DialogueTreeContainer>();

        tree.current = this;
    }