Table of Contents

Class CameraSystem

Namespace
Framework.Systems.Camera
Assembly
Assembly-CSharp.dll

ICameraSystem 구현체. Vector3.SmoothDamp 기반 추적 + UniTask 흔들림 효과.

public class CameraSystem : MonoBehaviour, ICameraSystem
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
CameraSystem
Implements

Remarks

LateUpdate는 카메라 추적 목적으로만 예외 허용(TickLifecycle.md 기준). Shake는 ForgetWithLog로 fire-and-forget. 완료 후 localPosition 자동 복원. Zoom은 TODO — ITweenService 연동 필요.

Methods

Follow(Transform, float)

대상 Transform을 부드럽게 추적.

public void Follow(Transform target, float smoothTime = 0.1)

Parameters

target Transform

추적할 Transform.

smoothTime float

SmoothDamp 지연 시간(초).

Shake(float, float)

카메라 흔들림 효과. 비동기 실행 후 원위치 복원.

public void Shake(float duration, float intensity)

Parameters

duration float

흔들림 지속 시간(초).

intensity float

흔들림 강도(Unity 단위).

StopFollow()

추적 대상 해제. 카메라 정지.

public void StopFollow()

Zoom(float, float)

카메라 줌 크기 변경.

public void Zoom(float targetSize, float duration)

Parameters

targetSize float

목표 orthographicSize.

duration float

전환 시간(초).