no message
This commit is contained in:
parent
9d48441166
commit
9bde89c900
|
@ -7,28 +7,14 @@
|
|||
<list default="true" id="4757d49c-0b49-4c70-aad5-a981aeb5a89d" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.UnityFramework/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.UnityFramework/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assembly-CSharp.csproj" beforeDir="false" afterPath="$PROJECT_DIR$/Assembly-CSharp.csproj" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Framework/Editor/SceneStepEditorWindow.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Framework/Editor/SceneStepEditorWindow.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Framework/GameLauncher.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Framework/GameLauncher.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Framework/Manager/ProcessManager.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Framework/Manager/ProcessManager.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Framework/ProcessMode/ProcessStepDescription.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Framework/ProcessMode/ProcessStepDescription.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/SceneStepData.json" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/SceneStepData.json.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/TeachingData.json" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/TeachingData.json.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsPackData.json" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsPackData.json.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsSceneStepData - 副本.json" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsSceneStepData - 副本.json.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsSceneStepData.json" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/ToolsSceneStepData.json.meta" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/新流程.json" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/新流程.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/新流程.json.meta" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/StreamingAssets/DataConfig/新流程.json.meta" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/ddd.unity" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/ddd.unity" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/test.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/test.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Logs/AssetImportWorker0-prev.log" beforeDir="false" afterPath="$PROJECT_DIR$/Logs/AssetImportWorker0-prev.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Logs/AssetImportWorker0.log" beforeDir="false" afterPath="$PROJECT_DIR$/Logs/AssetImportWorker0.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Logs/AssetImportWorker1-prev.log" beforeDir="false" afterPath="$PROJECT_DIR$/Logs/AssetImportWorker1-prev.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Logs/AssetImportWorker1.log" beforeDir="false" afterPath="$PROJECT_DIR$/Logs/AssetImportWorker1.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Logs/shadercompiler-AssetImportWorker0.log" beforeDir="false" afterPath="$PROJECT_DIR$/Logs/shadercompiler-AssetImportWorker0.log" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/UserSettings/EditorUserSettings.asset" beforeDir="false" afterPath="$PROJECT_DIR$/UserSettings/EditorUserSettings.asset" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/UnityFramework.sln.DotSettings.user" beforeDir="false" afterPath="$PROJECT_DIR$/UnityFramework.sln.DotSettings.user" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -42,6 +28,7 @@
|
|||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="HighlightingSettingsPerFile">
|
||||
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/de1c5ad3649748deb35871fd5120ecea954e00/60/6c903841/EditorStyles.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/f37d63bf724b4debb9eecb3c7c2abb7e10fc00/56/09fb945c/Enumerable.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
<setting file="file://$PROJECT_DIR$/Assets/新流程_ProcessEvents.cs" root0="FORCE_HIGHLIGHTING" />
|
||||
</component>
|
||||
|
@ -180,6 +167,19 @@
|
|||
</properties>
|
||||
<option name="timeStamp" value="3" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DotNet Breakpoints">
|
||||
<url>file://$PROJECT_DIR$/Assets/Framework/Manager/ProcessManager.cs</url>
|
||||
<line>625</line>
|
||||
<properties documentPath="E:\Unity Projects\GitLab\2024\UnityFramework\Assets\Framework\Manager\ProcessManager.cs" containingFunctionPresentation="方法 'AddIncorrectClick'">
|
||||
<startOffsets>
|
||||
<option value="20573" />
|
||||
</startOffsets>
|
||||
<endOffsets>
|
||||
<option value="20627" />
|
||||
</endOffsets>
|
||||
</properties>
|
||||
<option name="timeStamp" value="4" />
|
||||
</line-breakpoint>
|
||||
</breakpoints>
|
||||
</breakpoint-manager>
|
||||
</component>
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
<Compile Include="Assets\TestScripts\DoTweenTest\DoTweenTest.cs" />
|
||||
<Compile Include="Assets\Framework\Test\TestProcess.cs" />
|
||||
<Compile Include="Assets\Framework\ProcessExecutor.cs" />
|
||||
<Compile Include="Assets\Framework\Test\ProcessTest.cs" />
|
||||
<Compile Include="Assets\Framework\ProcessMode\ProcessMode.cs" />
|
||||
<Compile Include="Assets\Framework\Dto\SubmitScoreDto.cs" />
|
||||
<Compile Include="Assets\Framework\ProcessMode\ProcessCollection.cs" />
|
||||
|
@ -74,6 +75,7 @@
|
|||
<None Include="Assets\StreamingAssets\DataConfig\新流程.json" />
|
||||
<None Include="E:\com.unity.ide.cursor-master\ValidationExceptions.json" />
|
||||
<None Include="Assets\StreamingAssets\data\config.json" />
|
||||
<None Include="Assets\StreamingAssets\DataConfig\流程测试.json" />
|
||||
<None Include="Assets\Framework\ThirdParty\NaughtyAttributes\package.json" />
|
||||
<None Include="E:\com.unity.ide.cursor-master\ValidationConfig.json" />
|
||||
<Reference Include="UnityEngine">
|
||||
|
|
|
@ -62,9 +62,11 @@ public class GameLauncher : MonoBehaviour
|
|||
MotionEngine.CreateModule<SceneManager>();
|
||||
|
||||
var sceneManager = MotionEngine.GetModule<SceneManager>();
|
||||
|
||||
|
||||
MotionEngine.GetModule<ProcessManager>().InitializeFirstStep(System.IO.File.ReadAllText( Application.streamingAssetsPath + "/DataConfig/新流程.json"),ProcessMode.Teaching);
|
||||
|
||||
|
||||
MotionEngine.GetModule<ProcessManager>().InitializeFirstStep(
|
||||
System.IO.File.ReadAllText(Application.streamingAssetsPath + "/DataConfig/新流程.json"),
|
||||
ProcessMode.Teaching);
|
||||
|
||||
// //获取所有ProcessAction 属性
|
||||
ProcessExecutor.ExecuteProcessAddMethods("新流程ProcessEvents");
|
||||
|
|
|
@ -0,0 +1,246 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Framework.ProcessMode;
|
||||
using System.IO;
|
||||
using DefaultNamespace.ProcessMode;
|
||||
using MotionFramework;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class ProcessTest : MonoBehaviour
|
||||
{
|
||||
private ProcessManager processManager;
|
||||
private string testJsonPath;
|
||||
private string testJsonContent;
|
||||
|
||||
private IEnumerator Start()
|
||||
{
|
||||
yield return new WaitForSeconds(2);
|
||||
// 初始化测试
|
||||
InitializeTest();
|
||||
}
|
||||
|
||||
private void InitializeTest()
|
||||
{
|
||||
// 获取ProcessManager实例
|
||||
processManager = MotionEngine.GetModule<ProcessManager>();
|
||||
|
||||
// 设置测试JSON文件路径
|
||||
testJsonPath = Path.Combine(Application.streamingAssetsPath, "DataConfig", "流程测试.json");
|
||||
|
||||
// 读取测试JSON文件
|
||||
if (File.Exists(testJsonPath))
|
||||
{
|
||||
testJsonContent = File.ReadAllText(testJsonPath);
|
||||
Debug.Log("成功加载测试流程文件");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("测试流程文件不存在!");
|
||||
return;
|
||||
}
|
||||
|
||||
// 开始测试
|
||||
StartCoroutine(RunAllTests());
|
||||
}
|
||||
|
||||
private IEnumerator RunAllTests()
|
||||
{
|
||||
Debug.Log("开始运行流程系统测试...");
|
||||
|
||||
// 测试教学模式
|
||||
yield return StartCoroutine(TestTeachingMode());
|
||||
|
||||
// 测试培训模式
|
||||
yield return StartCoroutine(TestTrainingMode());
|
||||
|
||||
// 测试练习模式
|
||||
yield return StartCoroutine(TestPracticeMode());
|
||||
|
||||
// 测试考核模式
|
||||
yield return StartCoroutine(TestAssessmentMode());
|
||||
|
||||
Debug.Log("所有测试完成!");
|
||||
}
|
||||
|
||||
private IEnumerator TestTeachingMode()
|
||||
{
|
||||
Debug.Log("\n=== 开始测试教学模式 ===");
|
||||
|
||||
// 重置流程
|
||||
processManager.ResetProcess(testJsonContent, ProcessMode.Teaching);
|
||||
|
||||
// 测试顺序点击
|
||||
Debug.Log("测试顺序点击...");
|
||||
yield return StartCoroutine(TestSequentialClick());
|
||||
|
||||
// 测试非顺序点击
|
||||
Debug.Log("测试非顺序点击...");
|
||||
yield return StartCoroutine(TestNonSequentialClick());
|
||||
|
||||
// 测试事件类型目标
|
||||
Debug.Log("测试事件类型目标...");
|
||||
yield return StartCoroutine(TestEventTypeTarget());
|
||||
|
||||
Debug.Log("教学模式测试完成");
|
||||
}
|
||||
|
||||
private IEnumerator TestTrainingMode()
|
||||
{
|
||||
Debug.Log("\n=== 开始测试培训模式 ===");
|
||||
|
||||
// 重置流程
|
||||
processManager.ResetProcess(testJsonContent, ProcessMode.Training);
|
||||
|
||||
// 测试不需要正确完成的情况
|
||||
Debug.Log("测试不需要正确完成的情况...");
|
||||
yield return StartCoroutine(TestNoRequireCorrect());
|
||||
|
||||
// 测试混合类型目标
|
||||
Debug.Log("测试混合类型目标...");
|
||||
yield return StartCoroutine(TestMixedTypeTargets());
|
||||
|
||||
Debug.Log("培训模式测试完成");
|
||||
}
|
||||
|
||||
private IEnumerator TestPracticeMode()
|
||||
{
|
||||
Debug.Log("\n=== 开始测试练习模式 ===");
|
||||
|
||||
// 重置流程
|
||||
processManager.ResetProcess(testJsonContent, ProcessMode.Practice);
|
||||
|
||||
// 测试重复目标
|
||||
Debug.Log("测试重复目标...");
|
||||
yield return StartCoroutine(TestDuplicateTargets());
|
||||
|
||||
// 测试自由探索
|
||||
Debug.Log("测试自由探索...");
|
||||
yield return StartCoroutine(TestFreeExploration());
|
||||
|
||||
Debug.Log("练习模式测试完成");
|
||||
}
|
||||
|
||||
private IEnumerator TestAssessmentMode()
|
||||
{
|
||||
Debug.Log("\n=== 开始测试考核模式 ===");
|
||||
|
||||
// 重置流程
|
||||
processManager.ResetProcess(testJsonContent, ProcessMode.Assessment);
|
||||
|
||||
// 测试严格顺序
|
||||
Debug.Log("测试严格顺序...");
|
||||
yield return StartCoroutine(TestStrictSequential());
|
||||
|
||||
// 测试综合场景
|
||||
Debug.Log("测试综合场景...");
|
||||
yield return StartCoroutine(TestComprehensiveScenario());
|
||||
|
||||
Debug.Log("考核模式测试完成");
|
||||
}
|
||||
|
||||
private IEnumerator TestSequentialClick()
|
||||
{
|
||||
// 模拟正确顺序点击
|
||||
processManager.HandleClick("Cube1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube3");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
|
||||
// 测试错误顺序
|
||||
processManager.ResetProcess(testJsonContent, ProcessMode.Teaching);
|
||||
processManager.HandleClick("Cube2"); // 错误顺序
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestNonSequentialClick()
|
||||
{
|
||||
// 模拟任意顺序点击
|
||||
processManager.HandleClick("Sphere2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Sphere1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Sphere3");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestEventTypeTarget()
|
||||
{
|
||||
// 测试事件类型目标
|
||||
processManager.HandleClick("Event1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestNoRequireCorrect()
|
||||
{
|
||||
// 测试不需要正确完成的情况
|
||||
processManager.HandleClick("WrongObject"); // 错误点击
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cylinder1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cylinder2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestMixedTypeTargets()
|
||||
{
|
||||
// 测试混合类型目标
|
||||
processManager.HandleClick("Pyramid1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Event2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestDuplicateTargets()
|
||||
{
|
||||
// 测试重复目标
|
||||
processManager.HandleClick("Cube1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube1"); // 重复点击
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestFreeExploration()
|
||||
{
|
||||
// 测试自由探索
|
||||
processManager.HandleClick("Sphere1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Event3");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Sphere2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestStrictSequential()
|
||||
{
|
||||
// 测试严格顺序
|
||||
processManager.HandleClick("Cube1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube2");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cube3");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
private IEnumerator TestComprehensiveScenario()
|
||||
{
|
||||
// 测试综合场景
|
||||
processManager.HandleClick("Sphere1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Event4");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
processManager.HandleClick("Cylinder1");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
}
|
||||
|
||||
// 用于在编辑器中手动触发测试
|
||||
[ContextMenu("运行所有测试")]
|
||||
public void RunTests()
|
||||
{
|
||||
StartCoroutine(RunAllTests());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0b24fa9ec8d5c2743a8439e8245c7314
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -25,24 +25,7 @@
|
|||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 0.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": false
|
||||
},
|
||||
{
|
||||
"Title": "新动作12",
|
||||
"TargetObjects": [],
|
||||
"Action": null,
|
||||
"Description": "",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 0.0,
|
||||
"Score": 5.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
|
|
|
@ -0,0 +1,284 @@
|
|||
[
|
||||
{
|
||||
"StepDescription": "教学模式测试",
|
||||
"Actions": [
|
||||
{
|
||||
"Title": "顺序点击测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Cube1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube2",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube3",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "请按顺序点击以下物体",
|
||||
"IsSequential": true,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
},
|
||||
{
|
||||
"Title": "非顺序点击测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Sphere1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Sphere2",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Sphere3",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "请点击任意顺序点击以下物体",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
},
|
||||
{
|
||||
"Title": "事件类型测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Event1",
|
||||
"Item2": 1
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "触发特定事件",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
}
|
||||
],
|
||||
"IsCompleted": false,
|
||||
"StepNumber": 0
|
||||
},
|
||||
{
|
||||
"StepDescription": "培训模式测试",
|
||||
"Actions": [
|
||||
{
|
||||
"Title": "不需要正确完成的测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Cylinder1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cylinder2",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "这个步骤不需要完全正确完成",
|
||||
"IsSequential": true,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": false
|
||||
},
|
||||
{
|
||||
"Title": "混合类型目标测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Pyramid1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Event2",
|
||||
"Item2": 1
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "包含模型和事件的目标",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
}
|
||||
],
|
||||
"IsCompleted": false,
|
||||
"StepNumber": 0
|
||||
},
|
||||
{
|
||||
"StepDescription": "练习模式测试",
|
||||
"Actions": [
|
||||
{
|
||||
"Title": "重复目标测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Cube1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube2",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "包含重复目标物体的测试",
|
||||
"IsSequential": true,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
},
|
||||
{
|
||||
"Title": "自由探索测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Sphere1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Sphere2",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Event3",
|
||||
"Item2": 1
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "练习模式下的自由探索",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 10.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": false
|
||||
}
|
||||
],
|
||||
"IsCompleted": false,
|
||||
"StepNumber": 0
|
||||
},
|
||||
{
|
||||
"StepDescription": "考核模式测试",
|
||||
"Actions": [
|
||||
{
|
||||
"Title": "严格顺序测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Cube1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube2",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Cube3",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "考核模式下的顺序测试",
|
||||
"IsSequential": true,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 20.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
},
|
||||
{
|
||||
"Title": "综合测试",
|
||||
"TargetObjects": [
|
||||
{
|
||||
"Item1": "Sphere1",
|
||||
"Item2": 0
|
||||
},
|
||||
{
|
||||
"Item1": "Event4",
|
||||
"Item2": 1
|
||||
},
|
||||
{
|
||||
"Item1": "Cylinder1",
|
||||
"Item2": 0
|
||||
}
|
||||
],
|
||||
"Action": null,
|
||||
"Description": "包含所有类型的综合测试",
|
||||
"IsSequential": false,
|
||||
"ClickedObjects": [],
|
||||
"CurrentObjectIndex": 0,
|
||||
"FeedbackDisplayed": false,
|
||||
"StepDescription": "",
|
||||
"Score": 20.0,
|
||||
"SceneName": null,
|
||||
"RequiresSceneSwitch": false,
|
||||
"TargetObjectEvents": {},
|
||||
"ProcessStepIndex": 0,
|
||||
"RequireCorrectCompletion": true
|
||||
}
|
||||
],
|
||||
"IsCompleted": false,
|
||||
"StepNumber": 0
|
||||
}
|
||||
]
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4bbdcbac16cc6d04bb5172e8bc8ff897
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -27,9 +27,11 @@ public class test : MonoBehaviour
|
|||
{
|
||||
// MotionEngine.GetModule<ProcessManager>().JumpToProcessAsync(4,1);
|
||||
MotionEngine.GetModule<ProcessManager>().HandleClick("1");
|
||||
MotionEngine.GetModule<ProcessManager>().HandleClick("2");
|
||||
MotionEngine.GetModule<ProcessManager>().HandleClick("3");
|
||||
MotionEngine.GetModule<ProcessManager>().HandleClick("²ÝÄàÂí");
|
||||
MotionEngine.GetModule<ProcessManager>().HandleClick("2");
|
||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("2");
|
||||
MotionEngine.GetModule<ProcessManager>().CalculateTotalScore();
|
||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("1");
|
||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("2");
|
||||
// MotionEngine.GetModule<ProcessManager>().HandleClick("3");
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +1,3 @@
|
|||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEditorStyles_002Ecs_002Fl_003AC_0021_003FUsers_003FPC_003FAppData_003FRoaming_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fde1c5ad3649748deb35871fd5120ecea954e00_003F60_003F6c903841_003FEditorStyles_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEnumerable_002Ecs_002Fl_003AC_0021_003FUsers_003FPC_003FAppData_003FRoaming_003FJetBrains_003FRider2024_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Ff37d63bf724b4debb9eecb3c7c2abb7e10fc00_003F56_003F09fb945c_003FEnumerable_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
|
Loading…
Reference in New Issue