111
This commit is contained in:
@@ -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>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user