using UnityEngine; public class SpeechVisualController : MonoBehaviour { private int status = 0; private Animator animator; void Start() { animator = GetComponent(); } void Update() { if (SpeechManager.Instance.Status != "TALKING") { animator.SetInteger("SetTalkEnd", SpeechManager.Instance.Status == "DONELONG"?1:2); } } }