引入 Cinemachine 和 CameraModule,添加摄像机跟随缓动效果

This commit is contained in:
SepComet
2026-06-10 09:55:57 +08:00
parent ee69efe965
commit 7a3a2cf17b
27 changed files with 999 additions and 269 deletions
@@ -113,6 +113,7 @@ namespace SepCore.Procedure
GameEntry.UIRouter.CloseUIAsync(UIFormType.HudForm).Forget();
GameEntry.CameraModule?.SetTarget(null);
Player = null;
GameEntry.SimulationWorld?.ClearSimulationState();
@@ -126,6 +127,7 @@ namespace SepCore.Procedure
try
{
Player = await GameEntry.Entity.ShowPlayerAsync(_currentPlayerData);
GameEntry.CameraModule?.SetTarget(Player != null ? Player.CachedTransform : null);
await GameEntry.UIRouter.OpenUIAsync(UIFormType.HudForm);
int selectedRoleId = procedureOwner.GetData<VarInt32>("SelectedRoleId").Value;