﻿using UnityEngine;
using System.Collections;

public class BullScripts2 : MonoBehaviour {

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () 
	{
		this.rigidbody.velocity = new Vector3(0,0,-5);
	}

	void OnTriggerEnter(Collider coll)
	{
		if(coll.gameObject.tag.Equals("Player"))
		{
			Time.timeScale = 0;
			Application.Quit();
		}
		else
		{
			Destroy(this.gameObject);
		}
	}
}
