,if (Vector3.Distance(transform.position , Player.transform.position) <= 0.6)
{
if (knockcount == false)
{
srpt2.Health–;
knockcount = true;
rb.AddForce (Dir.normalized * knockforce * Time.deltaTime ,ForceMode.Impulse);
StartCoroutine("Wait");
}
somthing wierd is happening the health var just keeps going down for seemingly no reson! HELP!