55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
|
|
using UnityEngine;
|
|
|
|
public class AxiPlayerPrefsForUnity : IAxiPlayerPrefs
|
|
{
|
|
public string GetString(string key, string defaultValue)
|
|
{
|
|
return PlayerPrefs.GetString(key, defaultValue);
|
|
}
|
|
|
|
public void SetString(string key, string value)
|
|
{
|
|
PlayerPrefs.SetString(key, value);
|
|
}
|
|
|
|
public int GetInt(string key, int defaultValue)
|
|
{
|
|
return PlayerPrefs.GetInt(key, defaultValue);
|
|
}
|
|
|
|
public void SetInt(string key, int value)
|
|
{
|
|
PlayerPrefs.SetInt(key, value);
|
|
}
|
|
|
|
public float GetFloat(string key, float defaultValue)
|
|
{
|
|
return PlayerPrefs.GetFloat(key, defaultValue);
|
|
}
|
|
|
|
public float GetFloat(string key)
|
|
{
|
|
return PlayerPrefs.GetFloat(key);
|
|
}
|
|
|
|
public int GetInt(string key)
|
|
{
|
|
return PlayerPrefs.GetInt(key);
|
|
}
|
|
|
|
public string GetString(string key)
|
|
{
|
|
return PlayerPrefs.GetString(key);
|
|
}
|
|
|
|
public void SetFloat(string key, float value)
|
|
{
|
|
PlayerPrefs.SetFloat(key,value);
|
|
}
|
|
|
|
public void DeleteAll()
|
|
{
|
|
PlayerPrefs.DeleteAll();
|
|
}
|
|
} |