Enemy AI not working correctly using state machine
so i made a state machine for my game but my problem is that when the enemy “sees” the player it switches from idle to attack skipping chase state and the enemy never moves. Also it doesn’t switch back to chase state when player is out of attack range.
this is my entire state machine: