This commit is contained in:
2025-11-12 18:39:09 +08:00
parent f615d8ddb0
commit 430fc90ade
37 changed files with 671 additions and 151 deletions

View File

@@ -1,9 +1,16 @@
using IngameDebugConsole;
using UnityEngine;
namespace Tuan.GameFramework
{
public class GameManager : Singleton<GameManager>
{
[ConsoleMethod("clear_prefs", "Clears all PlayerPrefs data")]
public static void ClearPlayerPrefs()
{
PlayerPrefs.DeleteAll();
PlayerPrefs.Save();
Debug.Log("<color=orange>All PlayerPrefs have been cleared!</color>");
}
}
}