12 lines
247 B
C#
12 lines
247 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CarController : MonoBehaviour
|
|
{
|
|
public void Move(float direction)
|
|
{
|
|
transform.Translate(Vector3.right * (direction * Time.deltaTime));
|
|
}
|
|
}
|