blob: 14db6b7f32e717666707faa1d82e3250b8fb5b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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;
}
}
|