|
|
@ -9,7 +9,7 @@ public class JsonIOExample : MonoBehaviour |
|
|
|
void Start() |
|
|
|
void Start() |
|
|
|
{ |
|
|
|
{ |
|
|
|
JsonIOUtility jsonData = new JsonIOUtility(); |
|
|
|
JsonIOUtility jsonData = new JsonIOUtility(); |
|
|
|
jsonData.setData(new MyItemData(1,"破碎的宝剑")); |
|
|
|
jsonData.setData(new MyItemData(1,"Sword")); |
|
|
|
jsonData.SaveToJsonFile(); |
|
|
|
jsonData.SaveToJsonFile(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|