using System.Collections; using System.Collections.Generic; using UnityEngine; public class ScaleChange : MonoBehaviour { float scale; Vector3 scaleChange; // Use this for initialization void Start () { } // Update is called once per frame void Update () { scale = Random.Range(0.5f, 2.0f); scaleChange = new Vector3(1.0f, 1.0f, 0.0f) * scale; this.transform.localScale = scaleChange; } }