H_SafeExperienceDrivingSystem/U3D_DrivingSystem/Assets/Script/WeatherMoveCar.cs

16 lines
350 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WeatherMoveCar : MonoBehaviour
{
public GameObject che;
// Update is called once per frame
void Update()
{
this.transform.position = new Vector3(che.transform.position.x,this.transform.position.y,che.transform.position.z);
}
}