Set camera looking at player when start
This commit is contained in:
+4257
-4507
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user