﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Move : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
        transform.position = new Vector3( transform.position.x, transform.position.y, transform.position.z  + -5 * Time.deltaTime);

        if (transform.position.z < -100)
        {
            Destroy(gameObject);
        }
	}
}
