This question was
closed Mar 18, 2018 at 02:02 PM by
S_jay1 for the following reason:
No Answer.
Question by
S_jay1 · Mar 15, 2018 at 08:31 PM ·
mobilegameparticlesystemdeath
Delayed particle effect?
My particle effect animation is delayed even though the Start Delay is set to 0. I'm trying to play a particle effect when my player dies, but there is like a two second delay. This is my script:
void OnCollisionEnter (Collision other)
{
if (other.gameObject.tag == "Box" || other.gameObject.tag == "Ground" ) {
animJump.ResetTrigger ("TapJump");
animJump.SetBool ("Floating", false);
floatingplayer = false;
}
if (other.gameObject.tag == "BoxBottom" ) {
Destroy (player);
posofdeadplayer = new Vector3 (player.transform.position.x, player.transform.position.y, -1) ;
Playerhasdied ();
}
}
void Playerhasdied (){
deathparticle.transform.position = posofdeadplayer;
deathparticle.Play (true);
}
Comment
Follow this Question
Related Questions
How do I change a hole in the wall with each time,Change hole in wall each time 1 Answer
Button to do two actions ?, 0 Answers
Lighting problem? 1 Answer
Progress Bar and lerps 0 Answers