public void Flush() { if (_serializedState != null) { _connection.Execute( new BackendUpdateTask(_serializedState), context => { PSDebug.Log("Saved game state to server"); _serializedState = null; } ); } }