예제 #1
0
    public void ShowGameplay(bool isReset = true)
    {
        if (isReset)
        {
            if (CurrentQuestionPanel != null)
            {
                Debug.LogError("From ShowGameplay");
                CurrentQuestionPanel.Reset();
            }
        }

        ShowHideElementsOfGameplayAccordingToMode();

        BaseQuestion currentQuestion = GameManager.Instance.GetCurrentQuestion();

        QuestionText.text = currentQuestion.Question;

        if (currentQuestion.HasTimerValue)
        {
            UITimer.SetTimer(Mathf.RoundToInt(GameManager.Instance.GetCurrentQuestion(true).TimeForQuestion));
            ShowHideGameObject(UITimer.gameObject, ShowHideAction.Show);
        }
        else
        {
            ShowHideGameObject(UITimer.gameObject, ShowHideAction.Hide);
        }
    }