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>(); }
public override void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex) { tree = animator.transform.root.GetComponent <DialogueTreeContainer>(); tree.current = this; }