alarm class 정리
This commit is contained in:
@@ -11,7 +11,7 @@ namespace UVC.Factory
|
||||
/// - 마우스 오른쪽 버튼 드래그: 카메라 회전 (Orbit)
|
||||
/// - 마우스 휠 스크롤: 카메라 줌 (Zoom)
|
||||
/// </summary>
|
||||
public class CameraController : SingletonScene<CameraController>
|
||||
public class FactoryCameraController : SingletonScene<FactoryCameraController>
|
||||
{
|
||||
[Header("Panning Speed")]
|
||||
[Tooltip("카메라 높이가 임계값보다 낮을 때의 평행 이동 속도")]
|
||||
@@ -55,7 +55,7 @@ namespace UVC.Factory
|
||||
/// <remarks>이 이벤트는 카메라의 변형이 업데이트될 때마다 트리거되며,
|
||||
/// 구독자는 위치, 회전 또는 크기 변경에 응답할 수 있습니다. 이 이벤트를 사용하여
|
||||
/// UI 요소 업데이트 또는 종속 값 재계산과 같은 작업을 수행할 수 있습니다.</remarks>
|
||||
public event Action<Transform> OnCameraChanged;
|
||||
public Action<Transform> OnCameraChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 카메라 위치가 변경될 때 발생합니다.
|
||||
@@ -63,14 +63,14 @@ namespace UVC.Factory
|
||||
/// <remarks>이 이벤트는 카메라 위치가 업데이트될 때마다 트리거됩니다. 구독자는
|
||||
/// 이 이벤트를 사용하여 UI 요소를 업데이트하거나 새 위치를 기반으로 계산을 수행하는 등 카메라 위치 변경에 대응할 수 있습니다.
|
||||
///</remarks>
|
||||
public event Action<Vector3> OnCameraPositionChanged;
|
||||
public Action<Vector3> OnCameraPositionChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 카메라의 회전이 변경될 때 발생합니다.
|
||||
/// </summary>
|
||||
/// <remarks>이 이벤트는 카메라의 회전이 업데이트될 때마다 트리거됩니다. 구독자는
|
||||
/// 이 이벤트를 사용하여 카메라 방향의 변경에 응답할 수 있습니다.</remarks>
|
||||
public event Action<Quaternion> OnCameraRotionChanged;
|
||||
public Action<Quaternion> OnCameraRotationChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 정의된 범위 내에서 카메라의 정규화된 수직 위치를 가져옵니다.
|
||||
@@ -121,7 +121,7 @@ namespace UVC.Factory
|
||||
}
|
||||
if (prevTransform.rotation != transform.rotation)
|
||||
{
|
||||
OnCameraRotionChanged?.Invoke(transform.rotation);
|
||||
OnCameraRotationChanged?.Invoke(transform.rotation);
|
||||
}
|
||||
}
|
||||
prevTransform = transform; // 현재 카메라 위치 저장
|
||||
Reference in New Issue
Block a user