using UnityEngine;
using System.Collections;

public class Airworld_BirdBrain : MonoBehaviour
{

	float deathtimer = 25;
	float timer = 0;
	public float speed = 5;

	// Use this for initialization
	void Start ()
	{
	
	}
	
	// Update is called once per frame
	void Update ()
	{

		this.gameObject.transform.Translate (new Vector3 (0, 0, 5 * Time.deltaTime));

		timer += Time.deltaTime;
		if (timer >= deathtimer) {
			Destroy (this.gameObject);
		}

	}
}
