Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GrowSize : MonoBehaviour {
- private float scale = 1;
- public float speed = 0.1f;
- // Use this for initialization
- void Start () {
- }
- // Update is called once per frame
- void Update () {
- transform.localScale = new Vector3 (scale, scale, 0);
- scale += speed;
- }
Add Comment
Please, Sign In to add comment