| 1234567891011121314151617181920 |
- using UnityEngine;
- using System.Collections.Generic;
- [CreateAssetMenu(fileName = "NewMathQuestion", menuName = "MathGame/MathQuestion")]
- public class MathQuestionSO : ScriptableObject
- {
- [Header("题目信息")]
- [TextArea(2, 4)]
- public string questionText; // 题目文本,例如:"5 + 3 = ?"
-
- [Header("答案")]
- public int correctAnswer; // 正确答案
-
- [Header("错误答案")]
- public List<int> wrongAnswers = new List<int>(); // 3个错误答案
-
- [Header("难度")]
- [Range(1, 3)]
- public int difficulty = 1; // 难度:1简单,2中等,3困难
- }
|