예제 #1
0
	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;
		}

	}
예제 #2
0
 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;
     }
 }