From 9d0bd2119f93e3ca48eb65714be7c7375dbf4e33 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Mon, 26 May 2025 13:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UITextQuestion.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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); } }