private void StartGame(int settingsId) { _.GUIManager.LoadingScreen.StartLoading(() => { _gameInstance = new GameInstance(this, settingsId, () => { _.GUIManager.LoadingScreen.FinishLoading(null); }); _menuScreen.SetActive(false); }); }
public void Initialize() { _menuScreen = _.GUIManager.InitializeComponent <MainMenuScreen>(); _menuScreen.Initialize(_.DataProvider.GameSettings.Select(s => s.Name)); _menuScreen.OnStart += StartGame; _menuScreen.SetActive(true); IsInitialized = true; }