public static void SetState(ClientState newState) { state?.Finish(); state = newState; state.Begin(); }