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

24 lines
392 B
C#
Raw Normal View History

2019-10-02 16:17:08 +00:00
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);
}
}
}
}