using UnityEngine;
using System.Collections;

public class spawnScript : MonoBehaviour {

	public float timer = 0.0f;
	public float spawnTime = 1.0f;
	public GameObject comet;

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

		timer += 1.0f * Time.deltaTime;

		if (timer >= spawnTime) {
		
			Instantiate(comet, transform.position, transform.rotation);
			timer = 0.0f;
		}
	
	}
}
