GameOff2024/Assets/Scripts/Quiz/QuestionInfo.cs
2024-11-11 14:33:31 -05:00

23 lines
611 B
C#

using System.Collections.Generic;
using UnityEngine;
namespace GameOff.Quiz
{
public struct QuestionInfo
{
public int Index { get; private set; }
public Sprite Question { get; private set; }
public List<string> Choices{ get; private set; }
public string Answer{ get; private set; }
public QuestionInfo(int index, Sprite question, List<string> choices, string answer)
{
Index = index;
Question = question;
Choices = choices;
Answer = answer;
}
public int Count => Choices.Count;
}
}