28 lines
477 B
C#
28 lines
477 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace PahlawanEnergi.Quiz
|
|
{
|
|
[System.Serializable]
|
|
public struct QuizItem
|
|
{
|
|
public int id;
|
|
[TextArea(3, 5)]
|
|
public string question;
|
|
public bool answer;
|
|
public QuizOption[] answerChoices;
|
|
|
|
[Header("Callback")]
|
|
[TextArea(3, 5)]
|
|
public string messageWhenCorrect;
|
|
public string messageWhenUncorrect;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|