Simple states machine system for unity