Firstborn/Assets/MeshBaker/Examples/SceneRuntimeExample/MB_ExampleMover.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

14 lines
243 B
C#

using UnityEngine;
using System.Collections;
public class MB_ExampleMover : MonoBehaviour {
public int axis = 0;
void Update () {
Vector3 v1 = new Vector3(5f,5f,5f);
v1[axis] *= Mathf.Sin(Time.time);
transform.position = v1;
}
}