How would I change this script so that when my cannonball prefab collides with something that has a tag of “enemy” it will spawn a blood splat particle effect, and if it collides with anything else it spawns a explosion particle effect?
void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.CompareTag("enemy"))
// trigger the blood splatter effect
else
// trigger the explosion effect
}