using UnityEngine;
using System.Collections;

public class TimedDestroy : MonoBehaviour {

    public float delay = 5.0f;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

        delay -= Time.deltaTime;

        if (delay < 0) {
            Destroy(this.gameObject);
        }
	}
}
