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

            IsInitialized = true;
        }