This commit is contained in:
parent
5ef503506e
commit
db0a7e0ec8
|
|
@ -47,15 +47,31 @@ namespace DefaultNamespace.ProcessMode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Action action = () => { Debug.Log(actionData.Description); };
|
Action action = () => { };
|
||||||
actions.Add(new ActionWithDescription(targetObjects, action, actionData.Description, actionData.IsSequential));
|
actions.Add(new ActionWithDescription(targetObjects, action, actionData.Description, actionData.IsSequential));
|
||||||
}
|
}
|
||||||
|
|
||||||
AnimationStep step = new AnimationStep(stepData.StepDescription, stepData.Score, actions);
|
AnimationStep step = new AnimationStep(stepData.StepDescription, stepData.Score, actions);
|
||||||
processManager.AddStepToProcess("Teaching", step);
|
processManager.AddStepToProcess("Teaching", step);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InitializeFirstStep();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InitializeFirstStep()
|
||||||
|
{
|
||||||
|
ProcessMode initialMode = ProcessMode.Teaching; // 假设初始模式是教学模式
|
||||||
|
MotionEngine.GetModule<AnimationProcessManager>().SetCurrentMode(initialMode);
|
||||||
|
|
||||||
|
if (MotionEngine.GetModule<AnimationProcessManager>().CurrentProcess.Steps.Count > 0)
|
||||||
|
{
|
||||||
|
AnimationStep firstStep = MotionEngine.GetModule<AnimationProcessManager>().CurrentProcess.Steps[0];
|
||||||
|
if (firstStep.Actions.Count > 0)
|
||||||
|
{
|
||||||
|
MotionEngine.GetModule<AnimationProcessManager>().PrepareNextStep(initialMode, firstStep.Actions[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// private List<ActionWithDescription> CreateStepActions()
|
// private List<ActionWithDescription> CreateStepActions()
|
||||||
Loading…
Reference in New Issue