…sigh cant figure out of to make it so when the bullet hits something a sparks prefab is displayed… and yet seems so simple. i cant figure it out ><
var lifetime = 5.0;
function Update ()
{
Destroy (gameObject, lifetime);
}
function OnCollisionEnter(hit : Collision)
{ Destroy(gameObject);
}