Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created June 6, 2020 08:58
Show Gist options
  • Save flushpot1125/acdbbd4cda2f8545b8c92e3395944bce to your computer and use it in GitHub Desktop.
Save flushpot1125/acdbbd4cda2f8545b8c92e3395944bce to your computer and use it in GitHub Desktop.
var fireworksParticle ={json data};
var fireworksParticleSystem = new ParticleSystem.Parse(fireworksParticle,scene,"",true);
var lineParticle ={json data};
var lineParticleySystem = ParticleSystem.Parse(lineParticle,scene,"",true);
lineParticleySystem.start();
lineParticleySystem.onAnimationEnd= function(){
console.log("line particle ended!");
fireworksParticleSystem.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment