35 lines
778 B
C#
35 lines
778 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Defines an exam question with multiple choices.
|
||
|
|
/// </summary>
|
||
|
|
[CreateAssetMenu(fileName = "ExamQuestion", menuName = "VFS/Exam Question")]
|
||
|
|
public class ExamQuestionData : ScriptableObject
|
||
|
|
{
|
||
|
|
[Header("Question Info")]
|
||
|
|
public int questionIndex;
|
||
|
|
[TextArea(2, 4)]
|
||
|
|
public string questionText;
|
||
|
|
|
||
|
|
[Header("Choices")]
|
||
|
|
public string[] choices;
|
||
|
|
public int correctChoiceIndex;
|
||
|
|
|
||
|
|
[Header("Feedback")]
|
||
|
|
[TextArea(2, 4)]
|
||
|
|
public string correctFeedback;
|
||
|
|
[TextArea(2, 4)]
|
||
|
|
public string incorrectFeedback;
|
||
|
|
|
||
|
|
[Header("Interaction")]
|
||
|
|
public QuestionType questionType;
|
||
|
|
public string targetTag;
|
||
|
|
|
||
|
|
public enum QuestionType
|
||
|
|
{
|
||
|
|
MultipleChoice,
|
||
|
|
ClickTarget,
|
||
|
|
SequenceOrder
|
||
|
|
}
|
||
|
|
}
|