Fix minimap camera script
This commit is contained in:
@@ -2,11 +2,11 @@ using UnityEngine;
|
||||
|
||||
public class CameraPlayerFollow : MonoBehaviour
|
||||
{
|
||||
//private Vector3 _cameraOffset = new(0, 40, 0);
|
||||
private Vector3 _cameraOffset = new(0, 40, 0);
|
||||
|
||||
//void LateUpdate()
|
||||
//{
|
||||
// Vector3 newPosition =
|
||||
// transform.position = Player.Instance.transform.position + _cameraOffset;
|
||||
//}
|
||||
void LateUpdate()
|
||||
{
|
||||
Vector3 newPosition =
|
||||
transform.position = Player.Instance.transform.position + _cameraOffset;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user