private void HandleSelectedQuiz(QuizVO quiz) { Debug.Log("HandleSelectedQuiz"); _quizSystem.UpdateSelectedQuiz(quiz, () => { Debug.Log("HandleSelectedQuiz Finished."); SceneManager.LoadSceneAsync(SceneConstanst.SceneName.GameScene, LoadSceneMode.Single); }); }
private void AddQuizItem(QuizVO quiz) { HomeQuizOptionView optionView = _homeQuizOptionFactory.Create(); optionView.OptionSelectionChangedEvent += HandleOptionSelected; optionView.SetData(quiz); RectTransform optionTransform = optionView.gameObject.GetComponent <RectTransform>(); optionTransform.SetParent(container); optionTransform.localScale = Vector3.one; optionTransform.SetInsetAndSizeFromParentEdge(UnityEngine.RectTransform.Edge.Left, 0, container.rect.size.x); }
public void SetData(QuizVO quiz) { this.Data = quiz; description.text = quiz.description; IsSelected = false; }