예제 #1
0
    private void UpdateCameraPosition(CameraAgent agent)
    {
        Vector3 pos = agent.GetCameraPosition();

        transform.position = new Vector3(pos.x, pos.y, pos.z);
        transform.rotation = agent.GetCameraRotation();

        _camera.orthographicSize = agent.GetCameraOrthographicScale();
    }