Example #1
0
        public void Setup(int maxHearts, int maxQuestion, IGameMode gameMode, Action <bool, int> actionCompleteGame = null, Action <InGameProgress> actionUpdateInfo = null)
        {
            _gameMode = gameMode;

            _progress.Reset(maxHearts, maxQuestion);

            _gameLogic.Setup(gameMode.GetData());

            _onActionCompleteGame = actionCompleteGame;
            _onActionUpdateInfo   = actionUpdateInfo;

            _maxAnswers = _gameMode.GetMaxAnswers();

            Next();
        }