Files
VR-WuKong/Assets/GameFramework/Runtime/GameManager.cs

17 lines
433 B
C#
Raw Normal View History

2025-11-13 17:40:28 +08:00
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>");
}
}
}