This commit is contained in:
parent
398de6d359
commit
a72329ab4f
|
|
@ -34,6 +34,12 @@ namespace DefaultNamespace.ProcessMode
|
|||
}
|
||||
}
|
||||
|
||||
public void ClearProcess()
|
||||
{
|
||||
processes.Clear();
|
||||
}
|
||||
|
||||
|
||||
public void AddStepToProcess(string type, AnimationStep step)
|
||||
{
|
||||
if (processes.ContainsKey(type))
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using DefaultNamespace.Dto;
|
||||
using DG.Tweening;
|
||||
using MotionFramework;
|
||||
|
|
@ -15,11 +16,18 @@ namespace DefaultNamespace.ProcessMode
|
|||
private AnimationProcessManager processManager;
|
||||
|
||||
|
||||
private IEnumerator Start()
|
||||
private async void Start()
|
||||
{
|
||||
yield return new WaitForSeconds(1);
|
||||
await Task.Delay(TimeSpan.FromSeconds(1));
|
||||
|
||||
|
||||
|
||||
|
||||
processManager = MotionEngine.GetModule<AnimationProcessManager>();
|
||||
|
||||
|
||||
processManager.ClearProcess();
|
||||
|
||||
processManager.AddProcess("Training");
|
||||
|
||||
string json = System.IO.File.ReadAllText(Application.streamingAssetsPath + "/DataConfig/SceneStepData.json");
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace ToolsPack
|
|||
|
||||
private void Start()
|
||||
{
|
||||
_toolsPackScene = MotionEngine.GetModule<ToolsPackManager>().GetToolsPackScene();
|
||||
// _toolsPackScene = MotionEngine.GetModule<ToolsPackManager>().GetToolsPackScene();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using DefaultNamespace.Dto;
|
||||
using DefaultNamespace.ProcessMode;
|
||||
using MotionFramework;
|
||||
|
|
@ -17,11 +18,17 @@ namespace ToolsPack
|
|||
private AnimationProcessManager processManager;
|
||||
|
||||
|
||||
private IEnumerator Start()
|
||||
private async void Start()
|
||||
{
|
||||
yield return new WaitForSeconds(1);
|
||||
await Task.Delay(TimeSpan.FromSeconds(1));
|
||||
|
||||
|
||||
processManager = MotionEngine.GetModule<AnimationProcessManager>();
|
||||
|
||||
|
||||
processManager.ClearProcess();
|
||||
|
||||
|
||||
processManager.AddProcess("Training");
|
||||
|
||||
string json = System.IO.File.ReadAllText(Application.streamingAssetsPath + "/DataConfig/ToolsSceneStepData.json");
|
||||
|
|
|
|||
Loading…
Reference in New Issue