This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AW_2025/Assets/MeshBaker/Examples/SceneRuntimeExample/MB_ExampleMover.cs
2025-03-06 10:29:25 +09: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;
}
}