Saving Times as Highscore

Hello,

I started making a small game 1 Week ago, but now I am stuck. The Highscore sets now on any time
if I have timer.time > highScore. But if I use timer.time < highScore it doesnt save any
Highscore. I also tried to get the float from the Playerprefs, that doesnt work also.
The code below is the latest. It may be a really stupid mistake somewhere, like a writing mistake.

I thank in advance,

-Cheatsrichter

FULL CODE:

using UnityEngine;
using UnityEngine.UI;

public class highScoreTracker : MonoBehaviour {

	private Timer timer;

	public float highScore;

	public Text text;

	void Start(){

		timer = GetComponent<Timer>();

	}

	void Update(){

		Debug.Log(PlayerPrefs.GetFloat(Application.loadedLevel.ToString() + "SCORE"));

		if(timer.time < PlayerPrefs.GetFloat(Application.loadedLevel.ToString() + "SCORE")){

			highScore = Mathf.Round(timer.time * 100f) / 100f;

			Debug.Log("HSS " + highScore);

			PlayerPrefs.SetFloat(Application.loadedLevel + "SCORE", highScore);
			PlayerPrefs.Save();
					
		}

		text.text = "TOP TIME : " + PlayerPrefs.GetFloat(Application.loadedLevel.ToString() + "SCORE").ToString();

	}

}

Took me hours to find the error, it was not in that script, it was in my Timer script.

The answer :

Final High Score Script:

using UnityEngine;
using UnityEngine.UI;

public class highScoreTracker : MonoBehaviour {

	public Timer timer;

	public float highScore = 15f;

	public Text text;

	void Start(){

		highScore = PlayerPrefs.GetFloat(Application.loadedLevelName);

		if(highScore == 0){

			highScore = 60;

			text.text = "TOP TIME : NONE";

		} else {

			ChangeText();

		}

	}

	void Update(){

		Debug.Log(highScore);

		if(timer.time < highScore){

			highScore = Mathf.Round(timer.time * 100) / 100;

			Save();

		}

	}

	public void Save(){

		PlayerPrefs.SetFloat(Application.loadedLevelName, highScore);

		PlayerPrefs.Save();

		print("saved");

		ChangeText();

	}

	public void ChangeText(){

		text.text = "TOP TIME : " + highScore.ToString();

	}

}

The Timer Script :

using UnityEngine;
using UnityEngine.UI;

public class Timer : MonoBehaviour {

	public float time = 60;

	public float tempTime;

	public Text text;

	void Update(){

		if(!goal.isGoal){

			tempTime += Time.deltaTime;

			time = 60;

		} else {

			time = tempTime;

			//to scores see highScoreTracker

		}

		text.text = "TIME : " + tempTime.ToString("F2");

	}
	
}