GameObject explosion = Instantiate(_Explosion, transform.position, Quaternion.identity); Destroy(explosion, explosion.GetComponent<ParticleSystem>().main.duration);