Firstborn/Assets/ProbeGridAndCut/DemoScene/MoveObject.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

22 lines
454 B
C#

using UnityEngine;
namespace ProbeGridAndCutDemoScene
{
public class MoveObject : MonoBehaviour
{
Vector3 position;
void Start()
{
position = transform.position;
}
// Update is called once per frame
void Update()
{
position.x -= Time.deltaTime;
if (position.x < -1.5f) position.x = 2.5f;
transform.position = position;
}
}
}