soundvision/UnityProject/Assets/Scenes/Examples/PdBackend/script/BoomBall.cs
2020-03-04 18:49:47 +01:00

23 lines
386 B
C#

using UnityEngine;
namespace cylvester
{
interface IBoomBall
{
float Size { set; }
}
public class BoomBall : MonoBehaviour, IBoomBall
{
public float Size
{
set
{
var scale = value * 0.01f + 0.1f;
transform.localScale = new Vector3(scale, scale, scale);
}
}
}
}