using UnityEngine;
using System.Collections;

public class MoveHarpoon : MonoBehaviour {

	public float SpeedOfHarpoon = 300;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		transform.Translate (Vector3.up * Time.deltaTime * SpeedOfHarpoon);
	}

	void OnCollisionEnter2D(Collision2D col)
	{
		if (col.gameObject.tag == "Kraken") 
		{
			Destroy (gameObject);
		}
	}
}
