bool canHit = true;
int curHp;
int maxHp = 3;
bool isHit = false;
public void RecountHp(int deltaHp)
{
if (deltaHp < 0 && canHit) {
curHp = curHp + deltaHp;
StopCoroutine(OnHit());
canHit = false;
isHit = true;
StartCoroutine(OnHit());
}
else if (curHp > maxHp) {
curHp = curHp + deltaHp;
curHp = maxHp;
}
print(curHp);
if (curHp <= 0)
{
GetComponent<CapsuleCollider2D>().enabled = false;
Invoke("Lose", 2.5f);
}
}
но при открытии файла в VS code начали лезть ошибки: 1) Терминал не открывается 
