Exemple #1
0
    private void Death(Vector3 hitDirection, GameObject hitBodyPart)
    {
        isDead = true;
        rdController.KillRagdoll(hitDirection, hitBodyPart);

        foreach (var audio in _audioSources)
        {
            audio.Stop();
        }

        //this.gameObject.layer = 11; <<-- moved to ragdoll die method
    }