Files
TuanTuan-Engine/Assets/GameFramework/Runtime/GameManager.cs

17 lines
433 B
C#
Raw Normal View History

2025-11-12 18:39:09 +08:00
using IngameDebugConsole;
2025-11-03 00:24:36 +08:00
using UnityEngine;
2025-11-12 07:04:31 +08:00
namespace Tuan.GameFramework
2025-11-03 00:24:36 +08:00
{
2025-11-12 07:04:31 +08:00
public class GameManager : Singleton<GameManager>
{
2025-11-12 18:39:09 +08:00
[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>");
}
2025-11-12 07:04:31 +08:00
}
2025-11-03 00:24:36 +08:00
}