Destroy On Collision

simple question, how would I go about writing a script that would destroy a gameobject (enemy) when a bullet prefab collides with it?

Along the lines of

function OnCollisionEnter(myCol: Collision){
	if( == "enemy"){

Alternitively you can make it check if it’s collided with an item with a tag of enemy.

using System.Collections.Generic;

    List<Collider> colliders = new List<Collider>();

    void OnCollisionEnter(Collision collision)
        if (collision.collider.gameObject.tag = "Enemy")
            colliders.Add(collision.collider); // saves the enemy for later respawn
   = false; // deactivate instead of destroy so you could later reactivate (respawn) him

Depending on the complexity of your needs you can opt for collision and trigger. For example if you intend to fully model a physical projectile, then you are usually better off with Collision, rigidbodies etc., but in those cases you need to fine-tune the physics min collision for penalty parameter, otherwise very fast objects like projectiles will seem to 'miss' the things they contact with. The trigger approach is far easier to implement, but sacrifices realism for ease of implementation.

Be sure to check the guide for rigidbodies and colliders to fully understand the benefits of OnTriggerEnter and OnCollisionEnter

void OnCollisionEnter(Collision collision){
if( == “enemy”){

You can use collision.gameObject.tag instead of use of name.