I have a script for when i click the object expands in the x axis and once i let go it reduces back to the original size.
CODE
using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
public float speed = 10;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown (0)) {
transform.localScale = transform.localScale + Vector2.Scale * speed * Time.deltaTime;
new Vector2(5.358479f, 0.5769206f);
}
}
}