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); } }
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(); } }
public void Init() { Rounds = new List <Round>(); Plan = Game.Instance.Plan; PrepareRound(Game.USER_GROUP, null); }