This commit is contained in:
parent
9b9874de4c
commit
605bdd2f96
|
|
@ -6,9 +6,9 @@ namespace DefaultNamespace.ProcessMode
|
||||||
{
|
{
|
||||||
public class ActionWithDescription
|
public class ActionWithDescription
|
||||||
{
|
{
|
||||||
public List<GameObject> TargetObjects { get; set; }
|
public List<GameObject> TargetObjects { get; set; }//需要点击的对象
|
||||||
public Action Action { get; set; }
|
public Action Action { get; set; }//动作
|
||||||
public string Description { get; set; }
|
public string Description { get; set; } //描述
|
||||||
public bool IsSequential { get; set; } // 指示是否需要按顺序点击
|
public bool IsSequential { get; set; } // 指示是否需要按顺序点击
|
||||||
public HashSet<GameObject> ClickedObjects { get; private set; } // 已点击的对象集合
|
public HashSet<GameObject> ClickedObjects { get; private set; } // 已点击的对象集合
|
||||||
public int CurrentObjectIndex { get; set; } // 当前对象的点击索引,仅用于按顺序点击的情况
|
public int CurrentObjectIndex { get; set; } // 当前对象的点击索引,仅用于按顺序点击的情况
|
||||||
|
|
@ -19,8 +19,8 @@ namespace DefaultNamespace.ProcessMode
|
||||||
Action = action;
|
Action = action;
|
||||||
Description = description;
|
Description = description;
|
||||||
IsSequential = isSequential;
|
IsSequential = isSequential;
|
||||||
ClickedObjects = new HashSet<GameObject>(); // 初始化已点击的对象集合
|
ClickedObjects = new HashSet<GameObject>();
|
||||||
CurrentObjectIndex = 0; // 初始化为第一个对象
|
CurrentObjectIndex = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,28 @@
|
||||||
{
|
{
|
||||||
"steps": [
|
"steps": [
|
||||||
|
{
|
||||||
|
"stepDescription": "步骤 4 描述",
|
||||||
|
"score": 0,
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"description": "将集中器连接线的螺丝全部拧开,拧开两个固定该线的螺丝后,线消失。;",
|
||||||
|
"score": 0,
|
||||||
|
"isSequential": true,
|
||||||
|
"targetObjects": [
|
||||||
|
"变电箱_门",
|
||||||
|
"插座"
|
||||||
|
]
|
||||||
|
},{
|
||||||
|
"description": "将集中器连接线的螺丝全部拧开,拧开两个固定该线的螺丝后,线消失。;",
|
||||||
|
"score": 0,
|
||||||
|
"isSequential": false,
|
||||||
|
"targetObjects": [
|
||||||
|
"变电箱_门",
|
||||||
|
"插座"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"stepDescription": "步骤 4 描述",
|
"stepDescription": "步骤 4 描述",
|
||||||
"score": 0,
|
"score": 0,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue