soundvision/UnityProject/Assets/Scenes/Examples/PdBackend/script/MoveBall.cs
2019-10-29 21:47:06 +01:00

23 lines
381 B
C#

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);
}
}
}
}