private void OnWorldSelected(WorldSelector selector) { _worldSelectors.ForEach(worldSelectorsComponent => { worldSelectorsComponent.SetSelected(false); }); selector.SetSelected(true); _selectedWorld = selector.World; }
private void SelectActiveWorld() { WorldSelector selected = _worldSelectors.Find(selector => selector.World.Id == _lastPlayedWorldId); if (selected == null) { return; } //TODO re-render after sort selected.SetSelected(true); _selectedWorld = selected.World; }