public void Execute() { Walk(); locatorTimer += Time.deltaTime; if (locatorTimer > difficultyUtils.locateAfter) { enemy.LocatePlayer(); locatorTimer = 0; } if (!animator.GetCurrentAnimatorStateInfo(0).IsName("Enemy2_blast")) { enemy.Move(); } }