using UnityEngine;
using System.Collections;

public class DestroyTimer : MonoBehaviour {

	public float Countdown=5;
	private float startTime;

	void Start () {
		startTime = Time.time;
	}
	
	void FixedUpdate () {
		if(Time.time - startTime > Countdown)
		{
			GameObject.Destroy (gameObject);
		}
	}
}
