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

public class MoveForward : MonoBehaviour {

	[SerializeField] private float speed = 1;
	private float timer = 0;

	void Update () {
		transform.position += new Vector3 (speed, 0, 0);
		timer += Time.deltaTime;
		if (timer > 15)
			Destroy (gameObject);
	}
}
