Add initial game systems and input handling for player interactions

This commit is contained in:
2025-12-09 22:20:38 +01:00
commit 5e0db113aa
182 changed files with 70557 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
namespace Infrastructure
{
public class PlayerPrefsPersistence : IPersistenceService
{
public void SaveHighScore(string key, int score)
{
PlayerPrefs.SetInt(key, score);
PlayerPrefs.Save();
}
public int LoadHighScore(string key)
{
return PlayerPrefs.GetInt(key, 0);
}
}
}