Search Unity

Activating ParticleSystem when going through Checkpoints

Discussion in 'Scripting' started by Zythus, Jun 18, 2017.

  1. Zythus

    Zythus

    Joined:
    Jun 28, 2014
    Posts:
    30
    @Edit
    Got it working with instantiate... Closed!

    Hi guys, I have got a ParticleSystem that is being activated when a player goes through a Checkpoint, and since I have 5 checkpoints I would like for this PS to work on these Checkpoints one after another. Creating 5 checkpoint ParticleSystems and assigning them in inspector one by one doesn't feel like a proper way of doing it. I was thinking about creating an array, using a foreach loop, or Instantiating that PS on every Checkpoint.
    Which choice would you recommend?

    Thanks
     
    Last edited: Jun 18, 2017