hey guys
I have this really simple camera follow script set up.
How would I implement something where the camera zooms out as the character moves, reaches a max limit, then when the character stops moving the camera zooms back in again?
using UnityEngine;
public class CameraFollow : MonoBehaviour {
public Transform Player;
public Vector3 Offset;
void LateUpdate ()
{
if (Player != null)
transform.position = Player.position + Offset;
}
}