using UnityEngine;
using System.Collections;

public class zombie : MonoBehaviour {
	public float speed;
	public GameObject target;

	// Update is called once per frame
	void Update () {
		Vector3 aim = new Vector3 (target.transform.position.x, this.transform.position.y, target.transform.position.z);
		transform.LookAt (aim);
		transform.Translate (Vector3.forward * speed * Time.deltaTime);
	}
}
