how to play a particle system if the player is moving in unity code example
Example: change particle start position unity
1. In your Particle System componenet, go to Shape.
2. There you can change the position of created particles using the Position Vector.
Note: Notice that there is a randomize position option at the bottom of Shape.