Game state management (Game, Menu, Titlescreen, etc) Basically, in every single game I've made so far, I always have a variable like "current state", which can be "game", "titlescreen", "gameoverscreen", etc. And then on my Update function I have a huge if current state "game" game stuf ... else if current state "titlescreen" ... However, I don't feel like this is a professional clean way of handling states. Any ideas on how to do this in a better way? Or is this the standard way?