soundvision/UnityProject/Assets/Scenes/Examples/MIDI/script/Mover.cs

16 lines
221 B
C#
Raw Normal View History

2019-10-30 17:45:05 +00:00
using UnityEngine;
namespace cylvester
{
public class Mover : MonoBehaviour
{
public void Move(int pos)
{
transform.position = new Vector3(pos - 8.0f, 0f, 0f);
}
}
}