PlayerInput playerControll;
void Start()
{
playerControll = GetComponent();
}
void playerDead()
{
if (bodyCollider.IsTouchingLayers(LayerMask.GetMask(“Enemy”)))
{
playerControll.enabled = false;
}
}
PlayerInput playerControll;
void Start()
{
playerControll = GetComponent();
}
void playerDead()
{
if (bodyCollider.IsTouchingLayers(LayerMask.GetMask(“Enemy”)))
{
playerControll.enabled = false;
}
}