Skip to content

Commit 6d8f15c

Browse files
committedJul 31, 2024
- update version
1 parent 9e06036 commit 6d8f15c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
## How To Install
2424
### Add the line below to `Packages/manifest.json`
2525

26-
for version `1.0.0`
26+
for version `1.0.1`
2727
```csharp
28-
"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.0",
28+
"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.1",
2929
```
3030
## Use
3131

32-
- Initialize data when loading the game: `GameData.Init()`
32+
- Initialize data when loading the game: `GameData.Init()` Data will be init (Load Data) automatically when game starts
3333
- Change Profile: `GameData.ChangeProfile(int profile)`
34-
- Load Data: `GameData.Load()` Load all data from file for game, data will be loaded automatically when starting the game
34+
- Load Data: `GameData.Load()` Load all data from file for game
3535
- Get Data: `GameData.Get("KEY", valueDefault);` Use similar to PlayerPrefs
3636
- Set Data: `GameData.Set("KEY", value);` Use similar to PlayerPrefs
3737
- Save Data: `GameData.Save()` Save data to file (You should save when pausing or quitting the game)

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.wolf-package.game-data",
33
"displayName": "UnityCommon-GameData",
44
"description": "System data for game unity",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"unity": "2021.3",
77
"category": "virtuesky",
88
"license": "MIT",

0 commit comments

Comments
 (0)
Please sign in to comment.