15 lines
259 B
C#
15 lines
259 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class SetRandomScale : MonoBehaviour
|
||
|
{
|
||
|
public float minimumScale;
|
||
|
|
||
|
public float maximumScale;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
float num = Random.Range(minimumScale, maximumScale);
|
||
|
base.transform.localScale = Vector3.one * num;
|
||
|
}
|
||
|
}
|