using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BulletScript : MonoBehaviour {

    private void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Enemy")
        {
            Destroy(other.gameObject);
            Destroy(gameObject);
        }
    }

    void Start () {
        GetComponent<Rigidbody>().AddForce(transform.forward * 200);
        Destroy(gameObject, 1.0f);
	}
}
