StateExitFunction

Function called when the owning state is exited, meaning it stops being the state machine's current state.