From 187dd0d43d3b8f9ed88539cb46f13b4efb32ae5b Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Mon, 6 Jan 2025 11:12:04 +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/Actions/TextQuestionAction.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Actions/TextQuestionAction.cs b/Assets/Scripts/Actions/TextQuestionAction.cs index 7f1d1f17..b6548e74 100644 --- a/Assets/Scripts/Actions/TextQuestionAction.cs +++ b/Assets/Scripts/Actions/TextQuestionAction.cs @@ -24,7 +24,7 @@ public class TextQuestionAction : IAction string errorScore = string.Empty; string scoreName = string.Empty; string absolutely = string.Empty; - + string finishedEvent = string.Empty; public static TextQuestionAction Allocate(Dictionary datas, System.Action onDelayFinish = null) { var retNode = mPool.Allocate(); @@ -41,6 +41,7 @@ public class TextQuestionAction : IAction retNode.errorScore = datas.ContainsKey("errorScore") ? datas["errorScore"] : string.Empty; retNode.scoreName = datas.ContainsKey("scoreName") ? datas["scoreName"] : string.Empty; retNode.absolutely = datas.ContainsKey("absolutely") ? datas["absolutely"] : string.Empty; + retNode.finishedEvent = datas.ContainsKey("finishedEvent") ? datas["finishedEvent"] : string.Empty; return retNode; } @@ -75,7 +76,8 @@ public class TextQuestionAction : IAction data.btns = btns.Split(',').ToList(); float.TryParse(wait, out data.waitCloseTime); bool.TryParse(showAnswer, out data.showAnswer); - if (string.IsNullOrEmpty(scoreName)==false) + data.finishedEvent = finishedEvent; + if (string.IsNullOrEmpty(scoreName) == false) { data.scoreName = scoreName; float.TryParse(rightScore, out data.rightScore);