Files
Crash-Course/Assets/Games/Spencer/myscript.cs

16 lines
248 B
C#
Raw Normal View History

2025-01-13 19:09:57 -05:00
using UnityEngine;
public class myscript : MonoBehaviour
{
[SerializeField] private float speed;
void Start()
{
}
void Update()
{
transform.position += new Vector3(speed * Time.deltaTime, 0f, 0f);
}
}