Meter Tracking in 2D game

Hello everyone,
I am new to Unity and also new to programming.
I have a question, I am making a jumping game and I want to have a meter counter on the top right of the screen.
The meter counter will have 2 sections:

  1. The highest meter you get.
  2. The current meter you are standing.
    Which is the best way or any tutorial to make it come true.
    Thanks guys.

public float hight = transform.position.y; orpublic Transform playerMeters; //in Update method; float hight = playerMeters.position.y. As for highst score public void OnDeath(//call on player death){float highscore = hight})