10 lines
160 B
C#
10 lines
160 B
C#
using UnityEngine;
|
|
|
|
public class Cube : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
transform.position += Time.deltaTime * transform.forward * 2;
|
|
}
|
|
}
|