Dark_Matter/Assets/Scripts/Spielwelt/Reset_Highscore.cs

15 lines
352 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SocialPlatforms.Impl;
public class Reset_Highscore : MonoBehaviour
{
public void ResetHighscore()
{
PlayerPrefs.DeleteKey("HighScore");
PlayerPrefs.SetFloat("HighScore", 0f);
Debug.Log("HighScore wurde Gelöscht");
}
}