using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CubeAnimaTest : MonoBehaviour {
public RuntimeAnimatorController animators;
// Use this for initialization
void Start () {
Invoke("Play_01", 2.0f); //测试用,延迟两秒改变动画片段
}
// Update is called once per frame
void Update () {
}
public void Play_01()
{
this.gameObject.GetComponent<Animator>().runtimeAnimatorController = animators;
}
}
弥恩的自用笔记——改变当前Animator
最新推荐文章于 2024-05-14 23:18:30 发布