Ways to Unity 10: Particle System

Introduction

In the game development, if you want to create a fire or smog, you’ll have to use a Particle System.
In the concept of Particle System, everything was made by particles. For example, Sand is a group of finely divided rock and mineral particles.

Code 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{
    public ParticleSystem explosionParticle;

    void Start()
    {
    }

    void Update()
    {
    }

    private void OnCollisionEnter(Collision other)
    {
        explosionParticle.Play();
    }
}