are you ever calling the HPLose function? I think you may be looking for the OnCollisionEnter(Collision col) method for what you're doing unless you are calling the HPLose function somewhere else you aren't showing.
↧