using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; [System.Serializable] public class Question { public string question; public string[] answers; public int good_answer; public int type; } [System.Serializable] public class Questions { public Question[] questions; } public class QuizzManager : MonoBehaviour { public GameObject LauncherScreen; public GameObject GameScreen; public GameObject Question1; public GameObject Question2; public GameObject Question3; void Start() { LauncherScreen.GetComponent().enabled = true; GameScreen.GetComponent().enabled = false; Question1.GetComponent().enabled = true; Question2.GetComponent().enabled = false; Question3.GetComponent().enabled = false; } public void LaunchGame() { LauncherScreen.GetComponent().enabled = false; GameScreen.GetComponent().enabled = true; } public void LeaveQuizz() { } public void ToQuestion2() { Question1.GetComponent().enabled = false; Question2.GetComponent().enabled = true; } public void ToQuestion3() { Question2.GetComponent().enabled = false; Question3.GetComponent().enabled = true; } public void ToHome() { LauncherScreen.GetComponent().enabled = true; GameScreen.GetComponent().enabled = false; } }