Exemple #1
0
        private void OnWorldSelected(WorldSelector selector)
        {
            _worldSelectors.ForEach(worldSelectorsComponent => { worldSelectorsComponent.SetSelected(false); });

            selector.SetSelected(true);
            _selectedWorld = selector.World;
        }
Exemple #2
0
        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;
        }