Quizz: Finish Launcher
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class LoadingSystem : MonoBehaviour
|
||||
{
|
||||
public Canvas CanvasObject;
|
||||
|
||||
void Start() {
|
||||
CanvasObject = GetComponent<Canvas>();
|
||||
}
|
||||
|
||||
public void Hide() {
|
||||
CanvasObject.enabled = false;
|
||||
}
|
||||
}
|
28
Assets/Scripts/Quizz/QuizzManager.cs
Normal file
28
Assets/Scripts/Quizz/QuizzManager.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class QuizzManager : MonoBehaviour
|
||||
{
|
||||
public GameObject LoadingCanvas;
|
||||
public GameObject TutorialCanvas;
|
||||
private bool launched;
|
||||
|
||||
void Start() {
|
||||
LoadingCanvas.GetComponent<Canvas>().enabled = true;
|
||||
TutorialCanvas.GetComponent<Canvas>().enabled = false;
|
||||
launched = false;
|
||||
}
|
||||
|
||||
public void ShowTutorial() {
|
||||
if (!launched) {
|
||||
LoadingCanvas.GetComponent<Canvas>().enabled = false;
|
||||
TutorialCanvas.GetComponent<Canvas>().enabled = true;
|
||||
launched = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void LaunchQuizz() {
|
||||
TutorialCanvas.GetComponent<Canvas>().enabled = false;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91f957206e219c64b8a29415eca04472
|
||||
guid: b4092beca5e50a24d9c6771c5e5eef64
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
Reference in New Issue
Block a user