コード例 #1
0
        public void GameMode(IGameMode gameMode)
        {
            Reset();

            _gameLogic.Setup(_maxHearts, _maxQuestion, gameMode, (isCompletedGame, scores) =>
            {
                Debug.LogError("Completed game := " + isCompletedGame + ", scores := " + scores);

                var window = isCompletedGame ? EWindowType.WinGameWindow : EWindowType.LoseGameWindow;

                WindowManager.SetGameScreen(window, EWindowType.None, scores.ToString(), _typeGame.ToString(), _modeGame.ToString());

                GameData.SetProgress((ETypeGame)_typeGame, _modeGame, isCompletedGame, scores);
            }, data =>
            {
                _gameMenu.SetData(data);
            });

            Admob.LoadingRewardVideo();
        }