2019-10-02 16:17:08 +00:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace cylvester
|
|
|
|
|
{
|
2020-03-04 17:49:47 +00:00
|
|
|
|
interface IBoomBall
|
2019-10-02 16:17:08 +00:00
|
|
|
|
{
|
2020-03-04 17:49:47 +00:00
|
|
|
|
float Size { set; }
|
2019-10-02 16:17:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class BoomBall : MonoBehaviour, IBoomBall
|
|
|
|
|
{
|
|
|
|
|
public float Size
|
|
|
|
|
{
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
var scale = value * 0.01f + 0.1f;
|
|
|
|
|
transform.localScale = new Vector3(scale, scale, scale);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|