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