public void PatrolState() { if (timeSinceFlip < patrolFlipTime) { timeSinceFlip += Time.deltaTime; } else { Flip(); timeSinceFlip = 0; } if (visionCone.InVisionCone()) { anim.SetBool("Chase", true); } }