nao esquece o link, quero dar uma olhada pvf.

An introduction to finite state machines and the state pattern for game development https://www.youtube.com/watch?v=-ZP2Xm-mY4E&list=PLaiU9HSaKMWtmAIR345HGIz_ijQiyr3kH