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; } }
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); }