Skip to content

Commit

Permalink
- update version
Browse files Browse the repository at this point in the history
  • Loading branch information
DucNV2000 committed Jul 31, 2024
1 parent 9e06036 commit 6d8f15c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
## How To Install
### Add the line below to `Packages/manifest.json`

for version `1.0.0`
for version `1.0.1`
```csharp
"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.0",
"com.wolf-package.game-data":"https://github.com/wolf-package/game-data-unity.git#1.0.1",
```
## Use

- Initialize data when loading the game: `GameData.Init()`
- Initialize data when loading the game: `GameData.Init()` Data will be init (Load Data) automatically when game starts
- Change Profile: `GameData.ChangeProfile(int profile)`
- Load Data: `GameData.Load()` Load all data from file for game, data will be loaded automatically when starting the game
- Load Data: `GameData.Load()` Load all data from file for game
- Get Data: `GameData.Get("KEY", valueDefault);` Use similar to PlayerPrefs
- Set Data: `GameData.Set("KEY", value);` Use similar to PlayerPrefs
- Save Data: `GameData.Save()` Save data to file (You should save when pausing or quitting the game)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.wolf-package.game-data",
"displayName": "UnityCommon-GameData",
"description": "System data for game unity",
"version": "1.0.0",
"version": "1.0.1",
"unity": "2021.3",
"category": "virtuesky",
"license": "MIT",
Expand Down

0 comments on commit 6d8f15c

Please sign in to comment.