override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { //called on the first frame of the state being played self = animator.GetComponent<MonologueControl>(); if (!monologueText.Equals("")) { self.monologuebox.SetActive(true); self.get_textbox().text = monologueText; } }
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { //called on the first frame of the state being played self = animator.GetComponent <MonologueControl>(); if (!monologueText.Equals("")) { self.monologuebox.SetActive(true); self.get_textbox().text = monologueText; } }