17 lines
278 B
C#
17 lines
278 B
C#
using UnityEngine;
|
|
|
|
public class NPCController : MonoBehaviour
|
|
{
|
|
private Animator _anim;
|
|
|
|
private void Awake()
|
|
{
|
|
_anim = GetComponent<Animator>();
|
|
}
|
|
|
|
public void SetAnimState(int animNo)
|
|
{
|
|
_anim.SetFloat("AnimNo", (float)animNo);
|
|
}
|
|
}
|