Initial commit

This commit is contained in:
Mausham
2025-12-14 18:16:49 +05:45
commit 94e8eba3b1
236 changed files with 84425 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
public class ScoreService
{
public int score=0;
public int highScore=0;
public void AddScore()
{
score += 5;
if (score>highScore)
{
SetNewHighScore();
}
}
private void SetNewHighScore()
{
highScore = score;
PlayerPrefs.SetInt("HighScore", highScore);
}
}