mirror of
https://github.com/ConjureETS/GameOff2024.git
synced 2026-03-24 13:10:58 +00:00
23 lines
611 B
C#
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;
|
|
}
|
|
} |