Exemple #1
0
    private void OnDeath()
    {
        // Play the effects for the death of the tank and deactivate it.
        isDead = true;
        m_Score.AddDeath();

        m_ExplosionParticles.transform.position = transform.position;
        m_ExplosionParticles.gameObject.SetActive(true);
        m_ExplosionParticles.Play();
        m_ExplosionAudio.Play();

        gameObject.SetActive(false);
    }