Esempio n. 1
0
    private void Death()
    {
        ParticleSystem vfx = Instantiate(pfbGoalParticle, transform.position, Quaternion.identity);

        vfx.Play();
        Destroy(vfx.gameObject, vfx.main.duration);

        Destroy(gameObject);
        playerHealth.BaseHit();
    }