Dark_Matter/Assets/Scripts/Spielwelt/Reset_Highscore.cs

15 lines
352 B
C#
Raw Normal View History

2025-03-14 15:09:56 +01:00
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<65>scht");
}
}