I am trying to make each the enemys start in an idle state and then attack the player when they spot them.
This has been done through using a boolean instance variable that is toggled when the player is spotted.
However when one enemy is alerted every enemy will chase the player rather than just the one.