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
+5
View File
@@ -41,6 +41,11 @@ public class CameraSystem : MonoBehaviour
_followOffset = _cinemachineTransposer.m_FollowOffset; _followOffset = _cinemachineTransposer.m_FollowOffset;
} }
private void Start()
{
transform.position = Player.Instance.transform.position;
}
private void Update() private void Update()
{ {
HandleCameraMovement(); HandleCameraMovement();