I managed to destroy the game object once it hits the ground after 1.2 seconds, but I can’t start a ParticleSystem at the position of the impact;
#pragma strict
var removeTime: float = 0.2;
var c : int = 0;
public var DestructionEffects : ParticleSystem;
function OnCollisionEnter (col : Collision) {
if(col.gameObject.tag == "Ground"){
c++;
print("Hit"+c);
var effect : ParticleSystem = Instantiate( DestructionEffects, transform.position, Quaternion.identity ) as ParticleSystem;
//Instantiate (DestructionEffects, transform.position, Quaternion.identity ) as ParticleSystem;
Destroy (gameObject,1.2f);
}
}