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