soundvision/UnityProject/Assets/Scenes/Examples/PdBackend/script/MoveBall.cs

24 lines
381 B
C#
Raw Normal View History

2019-10-29 20:47:06 +00:00
using UnityEngine;
namespace cylvester
{
interface IMoveBall
{
float Position { set; }
}
public class MoveBall : MonoBehaviour, IMoveBall
{
public float Position
{
set
{
var x = value * 0.1f;
transform.localPosition = new Vector3(x, 4f, 3f);
}
}
}
}