diff --git a/Assets/Scripts/UI/UITextQuestion.cs b/Assets/Scripts/UI/UITextQuestion.cs index 56c226dc..3fba319c 100644 --- a/Assets/Scripts/UI/UITextQuestion.cs +++ b/Assets/Scripts/UI/UITextQuestion.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using TMPro; using System; using static OperationController; +using System.Security.Cryptography; namespace QFramework.Example { @@ -139,11 +140,19 @@ namespace QFramework.Example // ½âÎö²»Îª¿Õ if (string.IsNullOrEmpty(mData.des) == false) { - if (Des.text == string.Empty) + Check(true, count => { - Des.text = mData.des; - return; - } + if (count != mData.answers.Count) + { + Des.text = mData.des; + return; + } + else + { + HideSelf(); + } + }); + return; } else { @@ -202,7 +211,6 @@ namespace QFramework.Example { count = mData.answers.Count; } - Des.text = mData.des; callback?.Invoke(count); } }