Loop fail and unity crash ( eng and spanish )

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

You do not need this loop because Healing() will be called every frame.
If i understanded what you want to do, this code should work fine.

private void OnTriggerStay(Collider other)
     {
         if (other.name == "healerTriger")
             Healing();
     }
 
     void Healing()
     {
         takingDmg = false;

         if (hpPlayer < 50)
             hpPlayer = 1 * Time.deltaTime;
     }