2026-07-09 꼬리밟는씬 제작중
This commit is contained in:
16
Assets/02_Scripts/Controller/NPCController.cs
Normal file
16
Assets/02_Scripts/Controller/NPCController.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user