public class Animation : MonoBehaviour
{
private Animator ani;
// Start is called before the first frame update
void Start()
{
ani = GetComponent<Animator>();
ani.speed = 0; //暂停
ani.speed = 1; //开始
}
// Update is called once per frame
void Update()
{
}
}
网友评论