void Awake() { target = GameObject.FindGameObjectWithTag("Player").transform; } void Update () { transform.position = target.position + offset; }