더 꾸미는 건 구현 다해보고 시간 남으면...
모든 Update 함수가 호출된 후, 마지막으로 호출된다. 주로 오브젝트를 따라가게 설정한 카메라는 LateUpdate를 사용한다(카메라가 따라가는 오브젝트가 Update하수 안에서 움직일 경우가 있기 때문).
public class CameraManager : MonoBehaviour { public Transform target; void LateUpdate() { transform.position = new Vector3(target.position.x, target.position.y, -10f); } }