通了一版

This commit is contained in:
2025-05-30 11:31:59 +08:00
parent 262ffad009
commit bdb514fc46
36 changed files with 7648 additions and 2422 deletions
+14 -3
View File
@@ -138,7 +138,7 @@ namespace AibisDream.FixSystem
public IEnumerator Enter()
{
var bodyModuleSystem = FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
var lightSystem = FixSystemCenter.SystemDic.Get<FixLightSystem>();
// 拔出插头
bodyModuleSystem.ResetPlug();
// 切换Body或Head
@@ -147,8 +147,19 @@ namespace AibisDream.FixSystem
bodyModuleSystem.SwitchModuleGroup(moduleState);
}
// 切换相机
yield return CameraKit.Instance.SwitchCamera(CameraEnum.BodyModule);
if (lightSystem != null && !lightSystem.IsSystemOn())
{
// 切换相机
yield return CameraKit.Instance.SwitchCamera(CameraEnum.BodyModuleCenter);
yield return UIManager.Instance.GetPanel<PlayToolPanel>().FadeOutAsync(0.5f);
yield return new WaitForSeconds(0.5f);
yield return CameraKit.Instance.SwitchCamera(CameraEnum.BodyModule);
yield return lightSystem.StartSystem();
}
else
{
yield return CameraKit.Instance.SwitchCamera(CameraEnum.BodyModule);
}
// 开启交互
bodyModuleSystem.EnableSystem();
}