I’m trying write a script so that when my GameObject, preferably a character hits the ground, it plays the particle of dust kicking up when you land. Right now just to make sure it at least works with a character, I’m using the Tag “Player”
I’m using the OnTriggerEnter function as a start, but the play function of the particle system gives me the error “An instance of type ‘UnityEngine.ParticleSystem’ is required to access non static member ‘Play’.”
function OnTriggerEnter(col:Collider)
{
if(gameObject.tag == "Player")
{
ParticleSystem.Play;
}
}