kyuskoj 发表于 2022-3-26 09:37

Unity 开始和暂停动画

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()    {            }}
页: [1]
查看完整版本: Unity 开始和暂停动画