mirror of
https://github.com/Relintai/Documents.git
synced 2024-11-14 10:37:19 +01:00
26 lines
562 B
C#
26 lines
562 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[System.Serializable]
|
|
public class QuizEntry {
|
|
public string question;
|
|
public List<string> answers;
|
|
public int answerId;
|
|
|
|
public bool IsValid { get { return answerId != -1; } }
|
|
|
|
public QuizEntry()
|
|
{
|
|
answers = new List<string>();
|
|
answerId = -1;
|
|
}
|
|
|
|
public QuizEntry(string question, List<string> answers, int answerId)
|
|
{
|
|
this.question = question;
|
|
this.answers = answers;
|
|
this.answerId = answerId;
|
|
}
|
|
}
|