added sounds

This commit is contained in:
Mausham
2025-12-14 22:51:43 +05:45
parent 94e8eba3b1
commit 0ea929bd20
30 changed files with 6756 additions and 882 deletions

View File

@@ -1,9 +1,10 @@
using System;
using UnityEngine;
public class ScoreService
{
public int score=0;
public int highScore=0;
public int highScore=PlayerPrefs.GetInt("HighScore",0);
public void AddScore()
{
@@ -18,6 +19,7 @@ public class ScoreService
{
highScore = score;
PlayerPrefs.SetInt("HighScore", highScore);
PlayerPrefs.Save();
}
}