How can I make the player's position be tracked?

I’m trying to create a way where the player current position would be tracked so that the enemy would close to the player or throw explosives at the player.

public class Player : MonoBehaviour {

private float playerSpeed = 3;
public GameObject projectilePrefab;

//The next line is what I struggle with. This is the culprit!!!!!!
private float currentPosition = ;
    //Or maybe if I do him like this:
    void currentPosition() {
    }


// Use this for initialization
void Start () 
{	
}

// Update is called once per frame
void Update ()
{
	Move();	
}

void Move()
	{
	//amount to move
float amntToMove = Input.GetAxisRaw("Horizontal") * playerSpeed * Time.deltaTime;
float amntToMove1 = Input.GetAxisRaw("Vertical") * playerSpeed * Time.deltaTime;
	
	//Move character
	transform.Translate(Vector3.right * amntToMove);
	transform.Translate(Vector3.up * amntToMove1);
	}

}

You don’t need to track the player’s position in your player script.

What you need to do is make sure the enemy always know where the player is.

This should be done in the enemy script and should look something like this:

private GameObject player;
private Vector3 playerPos;

void Start() {
player = GameObject.Find("player");
}

void Update() {
playerPos = player.transform.position;
}

Try it out.

Programming needs common sense which I lack. Thanks a million bro. Your a life saver.