I’m trying to make a leveling system for my game but when I’m trying to get a playerpref to another float in another scene it doesnt work I was using
void Start()
{
health = PlayerPrefs.GetFloat("health");
currentHealth = health;
HealthBar.value = CalculateHealth();
}