修改bug
This commit is contained in:
parent
fca248f7eb
commit
187dd0d43d
@ -24,7 +24,7 @@ public class TextQuestionAction : IAction
|
|||||||
string errorScore = string.Empty;
|
string errorScore = string.Empty;
|
||||||
string scoreName = string.Empty;
|
string scoreName = string.Empty;
|
||||||
string absolutely = string.Empty;
|
string absolutely = string.Empty;
|
||||||
|
string finishedEvent = string.Empty;
|
||||||
public static TextQuestionAction Allocate(Dictionary<string, string> datas, System.Action onDelayFinish = null)
|
public static TextQuestionAction Allocate(Dictionary<string, string> datas, System.Action onDelayFinish = null)
|
||||||
{
|
{
|
||||||
var retNode = mPool.Allocate();
|
var retNode = mPool.Allocate();
|
||||||
@ -41,6 +41,7 @@ public class TextQuestionAction : IAction
|
|||||||
retNode.errorScore = datas.ContainsKey("errorScore") ? datas["errorScore"] : string.Empty;
|
retNode.errorScore = datas.ContainsKey("errorScore") ? datas["errorScore"] : string.Empty;
|
||||||
retNode.scoreName = datas.ContainsKey("scoreName") ? datas["scoreName"] : string.Empty;
|
retNode.scoreName = datas.ContainsKey("scoreName") ? datas["scoreName"] : string.Empty;
|
||||||
retNode.absolutely = datas.ContainsKey("absolutely") ? datas["absolutely"] : string.Empty;
|
retNode.absolutely = datas.ContainsKey("absolutely") ? datas["absolutely"] : string.Empty;
|
||||||
|
retNode.finishedEvent = datas.ContainsKey("finishedEvent") ? datas["finishedEvent"] : string.Empty;
|
||||||
return retNode;
|
return retNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +76,7 @@ public class TextQuestionAction : IAction
|
|||||||
data.btns = btns.Split(',').ToList();
|
data.btns = btns.Split(',').ToList();
|
||||||
float.TryParse(wait, out data.waitCloseTime);
|
float.TryParse(wait, out data.waitCloseTime);
|
||||||
bool.TryParse(showAnswer, out data.showAnswer);
|
bool.TryParse(showAnswer, out data.showAnswer);
|
||||||
|
data.finishedEvent = finishedEvent;
|
||||||
if (string.IsNullOrEmpty(scoreName) == false)
|
if (string.IsNullOrEmpty(scoreName) == false)
|
||||||
{
|
{
|
||||||
data.scoreName = scoreName;
|
data.scoreName = scoreName;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user