For some reason no matter what value I use in my conditional (enemydistance < n OR enemydistance > n) it is ALWAYS RETURNING TRUE
If anyone can please provide some insight into what might be going on with my conditional. Thanks!
enemydistance[3] = Mathf.Sqrt(Mathf.Pow(aienemy[3].transform.position.x - controls.birdposition.x, 2) + Mathf.Pow(aienemy[3].transform.position.y - controls.birdposition.y, 2));
if (enemydistance[3] < 1.0f) ; //ALWAYS RETURNS TRUE FOR UNKNOWN REASON
{
anim2 = controls.rb.gameObject.GetComponent<Animator>();
anim2.Play("playerdeath");
}