Пример #1
0
        protected void PlayParticleEffect()
        {
            GameObject     particleObject = Instantiate(config.GetParticle(), gameObject.transform);
            ParticleSystem particleSystem = particleObject.GetComponent <ParticleSystem>();

            particleSystem.Play(true);
            StartCoroutine(DestroyParticleWhenFinished(particleObject));
        }