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

18 lines
467 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>
{
2025-11-14 18:44:06 +08:00
public GameObject Player;
2025-11-13 17:40:28 +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>");
}
}
}