void playerDead()
{
if (bodyCollider.IsTouchingLayers(LayerMask.GetMask(“Enemy”)))
{
if(playerControll.enabled) { transform.Translate(0f, 1f, 0f); }
playerControll.enabled = false;
animator.SetTrigger(“Dead”);
bodyCollider.enabled = false;
feetCollider.enabled = false;
}
}