예제 #1
0
        protected void PlayParticalEffect()
        {
            var particalePrefab = config.GetParticalPrefab();
            var particleObject  = Instantiate(particalePrefab, transform.position, particalePrefab.transform.rotation);

            particleObject.transform.parent = transform;
            particleObject.GetComponent <ParticleSystem>().Play();
            StartCoroutine(DestroyParticleWhenFinished(particleObject));
        }