using UnityEngine;
using System.Collections;

public class Follow : MonoBehaviour 
{
	public GameObject player;
	public float offX, offY,offZ;

	// Use this for initialization
	void Start () 
	{
		player = GameObject.FindGameObjectWithTag("Player");
	}
	
	// Update is called once per frame
	void LateUpdate () 
	{
		Vector3 playerPos = player.transform.position;
		Vector3 pos = new Vector3(playerPos.x + offX,playerPos.y + offY,playerPos.z + offZ);
		transform.position = pos;
	}
}
