Random Attack call with jump attack in unity. This is pretty intermediate state change of enemy behaviour. I wouldnt call it state machine however very close to it. This script can definatelly help you implement nice enemy behaviour.
Enemy AI unity
Enemy state change in unity
Enemy random attack
Enemy random skill call in unity
Unity tips
Unity tutorials
Unity level select
Unity mobile
Unity mobile level select