using DG.Tweening; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ControlCar : MonoBehaviour { public DOTweenPath Dopath; void Start() { StarCarAni(); } /// /// 开启车辆移动动画 /// public void StarCarAni() { GetComponent().DOPlay(); GetComponent().DOPlay(); } }