﻿using UnityEngine;
using System.Collections;

public class SpawnTime : MonoBehaviour {

	public float time2live;

	void Start () {
		Invoke ("destroyParticle", time2live);
	}
	
	private void destroyParticle(){
		Destroy (this.gameObject);
	}
}
