using UnityEngine;
using System.Collections;

public class ScaleUpDown : MonoBehaviour 
{
    public float scaleSize = 1.1f;
    public float scaleSpeed = 0.5f;

    private Vector3 startScale;
    private Vector3 endScale;

	void Start () 
    {
        startScale = transform.localScale;
        endScale = transform.localScale * scaleSize;
	}

	void Update () 
    {
        transform.localScale = Vector3.Lerp(startScale, endScale, 0.5f + 0.5f * Mathf.Sin(Time.time * scaleSpeed));
	}
}
