im doing a script for when a bullet hit an enemy it will damage the enemy and at the same time it will spawn a particle systeme (like blood)i aready done the part where it damage the enemy and kill him but i dont know how to spawn the particle systeme. can you help me.
here is my script:
var hitPoints = 1;
var bulletDamage = 1;
function OnCollisionEnter(coll:Collision){
if(coll.gameObject.tag=="bullet")
{ hitPoints -= bulletDamage; }
if (hitPoints <=0){
Destroy(gameObject);
}
}