1、导入带动画模型(卡吊车02)
2、在模型(卡吊车02)添加animation组件,并拖动赋值动画(Take 001)
注意点1:点击动画(Take 001)在debug模式下勾选legace选项
注意点2:如果动画(Take 001)不能进入debug模式,可将动画(Take 001)复制出来,修改后在拖拽给第2步中的animation。
3、动画(Take 001)播放进度控制脚本(anima_play_controller):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class anima_play_controller : MonoBehaviour
{
public Animation anim;
private float timeRecd;
private int index=0;
/// <summary>