Tz2/Assets/Zion/Scripts/Document/ControlCar.cs

26 lines
456 B
C#

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