Add player sprite and simple animation system
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user