public Transform player; public Vector3 offset; void LateUpdate() { transform.position = player.position + offset; }
public Transform player; public Vector3 offset; void Update () { transform.position = new Vector3 (player.position.x + offset.x, player.position.y + offset.y, offset.z); // Camera follows the player with specified offset position }
public Transform player; public Vector3 offset; void Update() { transform.position = player.position + offset; }