유니티 셋팅
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace DigitalOpus.MB.Examples
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user