hi, hola, anyone can explain me why i cant use this condition ? Alguien me puede decir porque no puedo usar esta condicion ?
private void OnTriggerStay(Collider other)
{
if (other.name == "healerTriger")
Healing();
}
void Healing()
{
takingDmg = false;
do
{
hpPlayer = 1 * Time.deltaTime;
}
while (hpPlayer< 50);
}
he probado if y while y sigue petando , pero no veo porque ya que la condicion tiene limite.
Even whith if or while the condition crash unity but why ? theres a limit in thereā¦
Big Thz