Exemplo n.º 1
0
        private void RemoveRound(RoundPlan round)
        {
            _rounds[_currentRound].HideGameObject();
            _rounds.Remove(_currentRound);

            _currentRound++;

            if (_currentRound < _plan.RoundsList.Count)
            {
                _rounds[_currentRound].ShowGameObject();
            }
            else
            {
                _finalRoundScreen.Show(_plan.FinalQuestions);
            }
        }
Exemplo n.º 2
0
        public void Show(int index, UIController controller, RoundPlan plan, Action <QuestionPlan> onQuestionSelected,
                         Action <RoundPlan> onThemesEnded)
        {
            _uiController       = controller;
            _plan               = plan;
            _onQuestionSelected = onQuestionSelected;
            _onThemesEnded      = onThemesEnded;

            if (index > 0)
            {
                _startRoundButton.gameObject.SetActive(true);
            }
            else
            {
                _startRoundButton.gameObject.SetActive(false);
                BeginRound();
            }
        }
Exemplo n.º 3
0
 public void Init()
 {
     Rounds = new List <Round>();
     Plan   = Game.Instance.Plan;
     PrepareRound(Game.USER_GROUP, null);
 }