using UnityEngine;
using System.Collections;

public class bulletSpawn : MonoBehaviour {

    public GameObject bullet;
    public float startTime;
    public float repeatTime;

	// Use this for initializatiostn
	void Start () {
        InvokeRepeating("Spawn", startTime, repeatTime);
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void Spawn () {
        Instantiate(bullet, gameObject.transform.position, gameObject.transform.rotation);
    }
}
