2026-03-17 14:19 FPS시점의 Strafe캐릭터 조작과 에임모드 전환
This commit is contained in:
@@ -35,9 +35,10 @@ private async Awaitable InitializeCameraRig()
|
||||
await Awaitable.NextFrameAsync();
|
||||
}
|
||||
|
||||
if (brain.ActiveVirtualCamera is CinemachineCamera cam)
|
||||
// 가져오는게 실제 cinemachine카메라가 아니라 매니저일수도 있기에 MonoBehaviour로 변환후 찾기
|
||||
if (brain.ActiveVirtualCamera is MonoBehaviour activeComponent)
|
||||
{
|
||||
_currentCameraRig = cam.GetComponentInParent<CameraRigBase>();
|
||||
_currentCameraRig = activeComponent.GetComponentInParent<CameraRigBase>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,11 +47,16 @@ public void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
|
||||
}
|
||||
|
||||
public void SetCameraRig(AimCameraRig cameraRig)
|
||||
public void SetCameraRig(CameraRigBase cameraRig)
|
||||
{
|
||||
_currentCameraRig = cameraRig;
|
||||
}
|
||||
|
||||
public CinemachineCamera GetLiveCinemachineCamera()
|
||||
{
|
||||
return _currentCameraRig.LiveCmCamera;
|
||||
}
|
||||
|
||||
public void ZoomCamera(float offset)
|
||||
{
|
||||
if (_currentCameraRig is AimCameraRig rig)
|
||||
|
||||
Reference in New Issue
Block a user