soundvision/UnityProject/Assets/Scenes/Examples/PdBackend/script/BoomBall.cs
2019-10-03 11:42:47 +02:00

23 lines
392 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);
}
}
}
}