Day1Day2重构基本完成

This commit is contained in:
2024-12-23 23:47:26 +08:00
parent 4e08fda3e6
commit 6341fbe46f
30 changed files with 2658 additions and 367 deletions
@@ -244,6 +244,56 @@ namespace AibisDream.FixSystem
// 添加参数
}
}
public struct BodyModuleToUFCommand : ITransitionCommand
{
// 引擎相机设置
private static readonly Vector3 CameraPos = new(0f, 0.5f, -10);
private const float OrthographicSize = 2.5f;
private const float Duration = 2f;
public IEnumerator Execute()
{
var bodyModuleSystem = FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
var UFSystem = FixSystemCenter.SystemDic.Get<UFSystem>();
// 插头回到初始插孔
bodyModuleSystem.ResetPlug();
// 相机聚焦到目标位
var cameraSq = CameraKit.Instance.TransCamera(CameraPos, OrthographicSize, Duration);
while (cameraSq.active && !cameraSq.IsComplete())
{
yield return null;
}
UFSystem.OpenUFView();
}
public void SetArgs(string arg)
{
// 添加参数
}
}
public partial struct UFToBodyModuleCommand : ITransitionCommand
{
private const float Duration = 2f;
public IEnumerator Execute()
{
var UFSystem = FixSystemCenter.SystemDic.Get<UFSystem>();
UFSystem.CloseUFView();
// 相机还原
var cameraSq = CameraKit.Instance.ReturnInitCamera(Duration);
while (cameraSq.active && !cameraSq.IsComplete())
{
yield return null;
}
}
public void SetArgs(string arg)
{
// 添加参数
}
}
}