Firstborn/Assets/MeshBaker/Examples/SceneRuntimeExample/MB_ExampleMover.cs

14 lines
243 B
C#
Raw Normal View History

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;
}
}