From 50378986107de59a940764226f6193e12fef041a Mon Sep 17 00:00:00 2001 From: zc <1062808664@qq.com> Date: Sun, 27 Oct 2024 23:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=A6=BB=E9=A2=98=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BB=A5=E4=BE=BF=E5=BC=80=E5=8F=91=E9=A2=98=E5=BA=93?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/DemoGame/GameScript/Hotfix/Data.meta | 3 ++ .../Hotfix/Data/QuestionBankData.cs | 31 +++++++++++++++++++ .../Hotfix/Data/QuestionBankData.cs.meta | 3 ++ .../GameScript/Hotfix/UI/Logic/AnswerUI.cs | 25 +-------------- 4 files changed, 38 insertions(+), 24 deletions(-) create mode 100644 Assets/DemoGame/GameScript/Hotfix/Data.meta create mode 100644 Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs create mode 100644 Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs.meta diff --git a/Assets/DemoGame/GameScript/Hotfix/Data.meta b/Assets/DemoGame/GameScript/Hotfix/Data.meta new file mode 100644 index 0000000..ab15b94 --- /dev/null +++ b/Assets/DemoGame/GameScript/Hotfix/Data.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 4bc9670fa7014130a180ddedb93dffb5 +timeCreated: 1730041828 \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs b/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs new file mode 100644 index 0000000..788ea46 --- /dev/null +++ b/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; +using UnityEngine; + +namespace ZC +{ + [System.Serializable] + public class QuestionBankData : ScriptableObject + { + public string questionName; + public List AnswerDatas = new List(); + } + + [System.Serializable] + public class AnswerData + { + public int index; + public string title; + public List options = new List(); + public string trueOption; + public string analyze; + } + + [System.Serializable] + public class OptionData + { + public string content; + + public bool isTrue; + // public string analyze; + } +} \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs.meta b/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs.meta new file mode 100644 index 0000000..6c2401a --- /dev/null +++ b/Assets/DemoGame/GameScript/Hotfix/Data/QuestionBankData.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: d756517b2bde43b68b5ed56251a48a9b +timeCreated: 1730041548 \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnswerUI.cs b/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnswerUI.cs index f083c9f..d9bf1f3 100644 --- a/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnswerUI.cs +++ b/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnswerUI.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using TMPro; +using TMPro; using UnityEngine.UI; namespace ZC @@ -120,26 +119,4 @@ namespace ZC } } } - - public class QuestionBankData - { - public List AnswerDatas = new List(); - } - - public class AnswerData - { - public int index; - public string title; - public List options = new List(); - public string trueOption; - public string analyze; - } - - public class OptionData - { - public string content; - - public bool isTrue; - // public string analyze; - } } \ No newline at end of file