示例#1
0
    public void OnAccordionMovementFinsh()
    {
        switch (state)
        {
        case QuizState.START:
            this.state = QuizState.NEXT_QUESTION;
            accordion.MoveTo(pickedLayers[currentQuestionIndex].Key, nextQuestionDelay);
            break;

        case QuizState.NEXT_QUESTION:
            ShowNextQuestion();
            break;

        case QuizState.RESULT:
            ShowResult();
            break;
        }
    }
示例#2
0
    private void ShowAccordion()
    {
        accordion.StopAllCoroutines();

        quiz.gameObject.SetActive(false);
        screenUI.SetActive(true);

        rotationWheel.gameObject.SetActive(true);
        accordion.InfoPoinsEnabled = true;

        if (startScreen.isActiveAndEnabled)
        {
            startScreen.Show(false);
        }

        accordion.DistanceFactor = 0.5f;

        rotationWheel.Reset();

        toggleButton.Toggle(state);

        accordion.MoveTo(startLayer, accordion.Step != startLayer ? 1.5f : 0);
    }