Health bar decrease in spite of hit away of enemy at unity

If i hit the enemy and still drag the mouse away health bar decrease again, and health bar decrease in spite of hit away of enemy at unity,
how can i fix that please