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