Files
the-peoples-messenger/Assets/Scripts/SpeechVisualController.cs
T
2026-08-25 13:20:59 +01:00

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);
}
}
}