private void Switch(string newStateName) { current.Exit(); current = states[newStateName]; current.Enter(); }