Set camera looking at player when start

This commit is contained in:
Vova
2023-12-06 10:36:47 +02:00
parent 9a76b510f0
commit 87595daf67
2 changed files with 4263 additions and 4508 deletions
+4257 -4507
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -38,7 +38,12 @@ public class CameraSystem : MonoBehaviour
private void Awake() private void Awake()
{ {
_cinemachineTransposer = _camera.GetCinemachineComponent<CinemachineTransposer>(); _cinemachineTransposer = _camera.GetCinemachineComponent<CinemachineTransposer>();
_followOffset = _cinemachineTransposer.m_FollowOffset; _followOffset = _cinemachineTransposer.m_FollowOffset;
}
private void Start()
{
transform.position = Player.Instance.transform.position;
} }
private void Update() private void Update()