📜  如何在设备上统一存储一些变量 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:40.388000             🧑  作者: Mango

代码示例1
//Example using the PlayerPrefs system to store integers on the local device storage
//Writing data
PlayerPrefs.SetInt("myPref", 5);
//Reading data
myint = PlayerPrefs.GetInt("myInt");