moving a object to a vector 2d

okay I am trying to make an enemy spawn and move twords my players position when it was spawned but it keeps going in weird directions for some reason
using UnityEngine;
using System.Collections;

public class enemymove : MonoBehaviour {
	Vector3 myv;
	public GameObject player;
	// Use this for initialization
	void Start () {
		player = GameObject.FindGameObjectWithTag ("playerShip");
		myv = player.transform.position;
		player.transform.rotation = transform.rotation;
	}
	
	// Update is called once per frame
	void Update () {

		transform.Translate (myv * 1 * Time.deltaTime);

	}
}

any help would be aprecated thanks

It seems you are not finding the direction to the player, you are just finding the player’s position. To find the direction to the player, you need to use vector subtraction.

So instead of this:

myv = player.transform.position;

In your update you should do something like this:

// Find the direction towards the player
Vector3 direction = player.transform.position - transform.position;
direction.Normalize(); // Normalize so you can manually set the speed to move

// Now move towards the player
transform.Translate(direction * speed * Time.deltaTime);