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

            selector.SetSelected(true);
            _selectedWorld = selector.World;
        }
コード例 #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;
        }