34 lines
674 B
C#
34 lines
674 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
public class QuestionPopUp : MonoBehaviour
|
|
{
|
|
public GameObject splashWrongAnswer;
|
|
public TextMeshProUGUI questionText;
|
|
public Image imageText;
|
|
|
|
public GameObject popUpWinGame;
|
|
|
|
public void GoodAnswer()
|
|
{
|
|
popUpWinGame.SetActive(true);
|
|
}
|
|
|
|
public void WrongAnswer()
|
|
{
|
|
StartCoroutine(SplashWrongAnswer());
|
|
}
|
|
|
|
IEnumerator SplashWrongAnswer()
|
|
{
|
|
splashWrongAnswer.SetActive(true);
|
|
yield return new WaitForSeconds(0.2f);
|
|
splashWrongAnswer.SetActive(false);
|
|
}
|
|
|
|
|
|
}
|